Wednesday 20 February 2008

Test run initialisation code

The problem of enabling log4net under NUnit required some unit test code that ran once at the start of a test run. Note that this code requires once-per-run execution, not per test or test-fixture.

After much puzzling and googling, I finally found the answer: SetupFixture. The NUnit documentation says it all.

Hurrah!