public void EventTest1() { IInternalLogger target = CreateLogger(); target.SetLevel(LogLevel.Always); calls = 0; target.Event(message, id); Assert.AreEqual(calls, 0); calls = 0; target.SetLevel(LogLevel.All); target.Event(message, ids); Assert.AreEqual(calls, 1); Assert.AreEqual(lastItem.Category, category); Assert.AreEqual(lastItem.Level, LogLevel.Event); Assert.IsNull(lastItem.Ex); Assert.AreEqual(lastItem.Message, message); Assert.IsNotNull(lastItem.Ids); Assert.AreEqual(ids, lastItem.Ids); calls = 0; target.SetLevel(LogLevel.Event); target.Event(message, id); Assert.AreEqual(calls, 1); }