I’ve a class with a lot of unit tests in C# (using NUnit 2.5.8) and I’d like to group the unit tests together based on which area of the class’s functionality I’m testing (so I can quickly choose which set to run in the NUnit UI).
I know I could refactor the class into smaller components, which would solve the problem, but are there any other ways to do this without completely re-designing the production code?
Why not a
[TestFixture](separate class) for each area of functionality that you want to test?