예제 #1
0
        public void DetailedTest1()
        {
            IInternalLogger target = CreateLogger();

            target.SetLevel(LogLevel.Always);
            calls = 0;
            target.Detailed(message, ids);
            Assert.AreEqual(calls, 0);
            calls = 0;
            target.SetLevel(LogLevel.All);
            target.Detailed(message, ids);
            Assert.AreEqual(calls, 1);
            Assert.AreEqual(message, lastItem.Message);
            Assert.AreEqual(ids, lastItem.Ids);
            Assert.IsNull(lastItem.Ex);
            Assert.AreEqual(lastItem.Category, category);
        }