Exemplo n.º 1
0
        public static void DebugRecordsToLog()
        {
            var spy = new SpyLog();

            spy.Debug(new Exception("DebugLog"), new Dictionary<string, object> { { "DebugInfo", new object() } }, "DebugMessage", 1, 2, 3);

            var entry = Assert.Single(spy.Entries);
            Assert.Equal(TraceEventType.Verbose, entry.Type);
            Assert.Contains("DebugLog", entry.Exception.Message);
            Assert.Contains("DebugInfo", entry.AdditionalInfo.Keys);
            Assert.Equal("DebugMessage", entry.Message);
        }
Exemplo n.º 2
0
        public void DebugRecordsToLog()
        {
            var spy = new SpyLog();

            spy.Debug(new Exception("DebugLog"), new Dictionary<string, object> { { "DebugInfo", new Object() } }, "DebugMessage", 1, 2, 3);

            Assert.Equal(1, spy.Messages.Count);
            Assert.Contains("VERBOSE", spy.Messages[0]);
            Assert.Contains("DebugLog", spy.Messages[0]);
            Assert.Contains("DebugInfo", spy.Messages[0]);
            Assert.Contains("DebugMessage", spy.Messages[0]);
        }
Exemplo n.º 3
0
        public void DebugRecordsToLog()
        {
            var spy = new SpyLog();

            spy.Debug(new Exception("DebugLog"), new Dictionary <string, object> {
                { "DebugInfo", new Object() }
            }, "DebugMessage", 1, 2, 3);

            Assert.Equal(1, spy.Messages.Count);
            Assert.Contains("VERBOSE", spy.Messages[0]);
            Assert.Contains("DebugLog", spy.Messages[0]);
            Assert.Contains("DebugInfo", spy.Messages[0]);
            Assert.Contains("DebugMessage", spy.Messages[0]);
        }
Exemplo n.º 4
0
        public static void DebugRecordsToLog()
        {
            var spy = new SpyLog();

            spy.Debug(new Exception("DebugLog"), new Dictionary <string, object> {
                { "DebugInfo", new object() }
            }, "DebugMessage", 1, 2, 3);

            var entry = Assert.Single(spy.Entries);

            Assert.Equal(TraceEventType.Verbose, entry.Type);
            Assert.Contains("DebugLog", entry.Exception.Message);
            Assert.Contains("DebugInfo", entry.AdditionalInfo.Keys);
            Assert.Equal("DebugMessage", entry.Message);
        }