tags:

views:

482

answers:

1

Quick question, how do I create a method that is run only once before all tests in the solution are run.

+4  A: 

Create a public static method, decorated with the AssemblyInitialize attribute. The test framework will call this method once per test run:

[AssemblyInitialize()]
public static void MyTestInitialize(TestContext testContext)
{}
driis
thanks for that
mglmnc