public virtual void TestSetLoggingLevel() { IList methodsCalled = SetRootInterceptor(); ILogging logger = Logger.Get(typeof(LoggingTestCase.ITestLogger)); Logger.LoggingLevel(Logger.Debug); ((LoggingTestCase.ITestLogger)logger.Trace()).Msg(); ((LoggingTestCase.ITestLogger)logger.Debug()).Msg(); ((LoggingTestCase.ITestLogger)logger.Info()).Msg(); Assert.AreEqual(Pair.Of(Logger.Debug, "msg"), ((Pair)PopFirst(methodsCalled))); Assert.AreEqual(Pair.Of(Logger.Info, "msg"), ((Pair)PopFirst(methodsCalled))); logger.LoggingLevel(Logger.Info); ((LoggingTestCase.ITestLogger)logger.Debug()).Msg(); ((LoggingTestCase.ITestLogger)logger.Info()).Msg(); ((LoggingTestCase.ITestLogger)logger.Error()).Msg(); Assert.AreEqual(Pair.Of(Logger.Info, "msg"), ((Pair)PopFirst(methodsCalled))); Assert.AreEqual(Pair.Of(Logger.Error, "msg"), ((Pair)PopFirst(methodsCalled))); }