I have a class library and associated test library. The class library needs to have the Windows Azure Storage emulator started at the beginning of the run regardless of how many classes or tests are executed. I see the base test class but that is called for every class. I need something more akin to a global class that is only called once at the beginning.
This question is in relation to this Azure Storage Emulator setup for testing: How to start Azure Storage Emulator from within a program
I’m using Visual Studio 2010 Professional. The class library is .Net Framework 4.
Which unit testing library are you using (MSTest, NUnit, etc.)? They all have methods of running initialization either before every test, or once before all tests.
With MSTest, the initialization code (which will run once before all tests) looks like this