We previously looked at how we can run a single written test with multiple data. By adding parameters and using the TestCase attribute, we were able to convert one test into many (from the test runner’s point of view) without explicitly writing more code. In this week’s newsletter, we’ll take this concept and apply it while zoomed out – instead of substituting test arguments, we’ll be interchanging object types.
How to Write NUnit Tests for Many Classes…
We previously looked at how we can run a single written test with multiple data. By adding parameters and using the TestCase attribute, we were able to convert one test into many (from the test runner’s point of view) without explicitly writing more code. In this week’s newsletter, we’ll take this concept and apply it while zoomed out – instead of substituting test arguments, we’ll be interchanging object types.