Use category for unique setup/text fixture setup
I have at two categories for my tests. One with hardware in the loop and one with out.
I tried using Category attribute to attempt to run a setup method named TestInit() when the selected category is hardware but when the category is no hardware I want to have Nunit call a setup method named TestInitNoHardw
Is there another way other than a completely seperate DLL (one for hardware and one for no-hardware)
Or can I programmatically check which "active" category has been selected from the GUI via code in the setup methods or in Setup method is there a way to know for the current test about to be run what it's Category is set to?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- NUnit V2 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Charlie Poole
- Solved:
- Last query:
- Last reply: