I’m not too sure whether this is doable or not.
Currently I need to set the license information before the start of my test code, because these tests use a third party component library that requires me to initialize the license information. The license information needs to be set only once– at the start of the running of the program.
But from what I understand, the philosophy of NUnit is that you can run a class, any class at any time, in any sequence, so although there is a setup method for each class, there isn’t a setup method that runs at the start of the test for a test suite. But I may be wrong.
Is there anyway to make sure that a method is always the first being called during the whole test execution process?
Have a look at the SetupFixture attribute. You can define one setup function to run once for an entire namespace.