public void TestFramework() { var inMemoryProvider = new InMemoryDatabaseProvider(); TheLog.AddProvider(inMemoryProvider, LogLevel.Trace); TheLog.Info("Test"); TheLog.Trace("Test2"); TheLog.Error("Test"); Assert.AreEqual(3, inMemoryProvider.Messages.Count); inMemoryProvider.ClearLog(); Assert.AreEqual(0, inMemoryProvider.Messages.Count); TheLog.Log(LogLevel.Info, "Message"); Assert.AreEqual(1, inMemoryProvider.Messages.Count); }