Exemple #1
0
        public void GetLoggerTestGeneric2()
        {
            ILog log = LogContext.GetLogger <Dictionary <int, string> >();

            Assert.AreEqual("System.Collections.Generic.Dictionary<System.Int32, System.String>", log.Name);
            Assert.AreEqual(LogLevel.None, log.LogLevel);
        }
Exemple #2
0
        public void GetLoggerTestGenericRecursive()
        {
            ILog log = LogContext.GetLogger <List <List <string> > >();

            Assert.AreEqual("System.Collections.Generic.List<System.Collections.Generic.List<System.String>>", log.Name);
            Assert.AreEqual(LogLevel.None, log.LogLevel);
        }
Exemple #3
0
        public void GetLoggerTestNonGeneric()
        {
            ILog log = LogContext.GetLogger <String>();

            Assert.AreEqual("System.String", log.Name);
        }