I am using NUnit with the TestCaseSource
attribute to do data-driven testing with dynamic data in the same approach as NUnit TestCaseSource pass value to factory and
How can I pass dynamic objects into an NUnit TestCase function?
In each case they use IEnumerable<TestCaseData>
to specify data. It appears from the NUnit documentation here http://nunit.org/index.php?p=testCaseSource&r=2.5 that this needs to be a static or instance member of the same class as the TestCase
.
I would like to refactor this into another class since I want to use the same TestCaseSource
attribute. Does anyone know if this is possible?