When analyzing the different options to organize unit tests in NUnit, I understood it as mainly of three types. 1.Test per Fixture 2.Class 3.Feature
Can anyone share some good reference which will provide an insight on this? ReferenceI am confused, the site referenced here explains NUnit or any other testing framework?
What are the constraints to be considered when selecting a pattern among the three?
For unit tests, we generally create one test class for every non-trivial class in our code. UsersDal will have a matching UsersDalTests, LicenseValidation a matching LicenseValidationTests, etc. This makes it easy to locate the tests when modifying a class. Tests per feature wouldn't make sense, as one top-level feature likely hits multiple classes.
If you were using NUnit to drive integration tests, then a per-feature structure would be appropriate.