Configures logging within test classes as shown below, in case of log4net reads log4net section from app.config file.
Configure: Initializes the log4net system with a default configuration.
ResetConfiguration: Resets all values contained in this repository instance to their defaults.

[TestFixtureSetUp]
public void SetUpFixture()
{
     LogHelper.ConfigureLogging();
}

[TestFixtureTearDown]
public void TearDownFixture()
{
     LogHelper.ResetLogging();
}
  • No labels