Open mbaker3 opened 2 years ago
TestCase would do what you want, basically run the same test repeatedly with different inputs and expected outputs.
yea, [Range]
looks interesting too. Writing the GetDigitCount()
tests the logic was getting sufficiently complex that I thought maybe NUnit should be doing more of the heavy lifting...or maybe I should embrace repetitive code in my tests.
I think I need to read up on best practices.
There are some more advanced attributes that can be assigned to tests. Could we benefit from them in our current tests to increase coverage and testing without as much copy/paste?
Ex:
MathUtilTests