In the last chapter, we discussed the attributes of good unit tests, as well as the two types of test supported by xUnit.net, Fact and Theory. Also, we walked through the creation of unit tests using the rich set of test assertions that are available in the xUnit.net unit testing framework.
Unit tests written for a software project should be run repeatedly right from the development stage, during deployment, during maintenance, and, effectively, throughout the life cycle of the project. Often, these tests should be run on different data inputs following the same execution steps, while the tests, and essentially, the code being tested are expected to have consistent behavior, irrespective of the data input.
Running tests on different sets of data can be achieved by creating or replicating existing tests with similar steps operating on the different desired...