title: Is it possible to execute code once before all tests run?
body: <p>Basically I would like to tell MSTest to execute a bit of code before launching into a series of test runs, essentially what I would like to do is the same thing as sticking some code in <code>Main()</code>.</p>
  
  <p>The reason I would like to do this is that I would like to do some logging with log4net during my integration test runs.  I cannot just use the <code>log4net.Config.XmlConfigurator</code> assembly attribute since by the time it reads it in my test assembly it has already called <code>LoggerManager</code>. The documentation recommends configuring log4net explicitly at the code entry point - but where is that in my tests?</p>
  
  <p>I need to be able to run my tests in TestDriven.NET and MSTest runner.</p>