-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Description
I recently worked on a epp template where i needed to generate the following in a configuration file.
Example1
[{
"Class": "MyNamespace.MyClass",
"Method": "MyMethod"
},
{
"Class": "MyNamespace.MyClass2",
"Method": "MyMethod"
}
]
Example2
[{
"Class": "MyNamespace.MyClass",
"Method": "MyMethod"
}
]
It seemed very hard to write a test to actually check if i am rendering commas correctly. For example the first example is an array that contains 1 item and therefore has no commas to separate items since its a 1 item array. The second example on the other hand needs to have a comma rendered between items.
It would be nice to have a feature where you could assert that a certain character appears an expected # of times. This way i could assert my logic of comma seperation is working as i expect it to.
Metadata
Metadata
Assignees
Labels
No labels