Exemple #1
0
        public void LoggerNameMatcher_All()
        {
            var matcher = LoggerNameMatcher.Create("*");

            Assert.Equal("logNamePattern: (:All)", matcher.ToString());
        }
Exemple #2
0
        public void LoggerNameMatcher_Empty()
        {
            var matcher = LoggerNameMatcher.Create("");

            Assert.Equal("logNamePattern: (:Equals)", matcher.ToString());
        }
Exemple #3
0
        public void LoggerNameMatcher_MultiplePattern_EscapedChars()
        {
            var matcher = LoggerNameMatcher.Create("a?b.c.foo.bar");

            Assert.Equal("logNamePattern: (^a.b\\.c\\.foo\\.bar$:MultiplePattern)", matcher.ToString());
        }
Exemple #4
0
        public void LoggerNameMatcher_None()
        {
            var matcher = LoggerNameMatcher.Create(null);

            Assert.Equal("logNamePattern: (:None)", matcher.ToString());
        }
Exemple #5
0
        public void LoggerNameMatcher_MultiplePattern_QuestionMark()
        {
            var matcher = LoggerNameMatcher.Create("a?bc");

            Assert.Equal("logNamePattern: (^a.bc$:MultiplePattern)", matcher.ToString());
        }
Exemple #6
0
        public void LoggerNameMatcher_MultiplePattern_StarInternal()
        {
            var matcher = LoggerNameMatcher.Create("a*bc");

            Assert.Equal("logNamePattern: (^a.*bc$:MultiplePattern)", matcher.ToString());
        }
Exemple #7
0
        public void LoggerNameMatcher_Contains()
        {
            var matcher = LoggerNameMatcher.Create("*abc*");

            Assert.Equal("logNamePattern: (abc:Contains)", matcher.ToString());
        }
Exemple #8
0
        public void LoggerNameMatcher_EndsWith()
        {
            var matcher = LoggerNameMatcher.Create("*abc");

            Assert.Equal("logNamePattern: (abc:EndsWith)", matcher.ToString());
        }
Exemple #9
0
        public void LoggerNameMatcher_StartsWith()
        {
            var matcher = LoggerNameMatcher.Create("abc*");

            Assert.Equal("logNamePattern: (abc:StartsWith)", matcher.ToString());
        }