Writing Data-Driven Tests
We'll cover the following...
Good tests are FAIR—fast, automated, independent, and repeatable. If tests aren’t independent of each other, then they have to run in a specific order. And by adding or removing a test, we may break the order and the tests may fail. Such tests will become expensive and hard to maintain.
One way to guarantee independence of tests is to never place multiple asserts in the same test for verifications that ...