public void AfterAllTestsRun() { //Reconfigure the original ConsoleAppender so that when //the other tests run their logging is spat out as normal GlobalAssemblyTestSetup.ConfigureConsoleAppendar(); }
public void BeforeAnyTestsRun() { //Change the default logger to our TestAppender so that //we can run unit tests on the ILogExtensions ans examine //their output. GlobalAssemblyTestSetup.ShutDownAllRepositories(); _testAppender = new TestAppender(); log4net.Config.BasicConfigurator.Configure(_testAppender); }