TestCaseSource in Nunit 2.5
Recently, one my team mates discovered the TestCaseSource attribute in Nunit 2.5. I have been using the TestCase attribute for a little while. It enables you to tes multiple inputs with one test:
This is useful for various reasons, mainly that you don’t have to write a separate test for each input. TestCaseSource is a different way of doing this by allowing the user to build up an IEnumerable of test cases and just add that to the test.
This is helpful as you won’t have a load of testcase attributes at the top of each test, and you could reuse this data. Lovely!