You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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