Parameterized testing with Enumerations using Fixie: part 2
This is a conclusion to Part 1 about adding parameterized tests to Fixie.
Last time we spoke about some approaches to adding parameters to Fixie, a la NUnit’s TestCaseSource parameter. I promised a better attempt than the first one.
The finished sample was submitted to Fixie, and Patrick did end up merging it into the Fixie source.
TestCaseSource parameter can accept any method, property or field that returns an
IEnumerable<object>. Your test will be run once for each value in the
IEnumerable<>, with the
object array being the parameters that get passed in.
Check out the source and samples, and feel free to leave comments and suggestions!