public void LoggerNameMatcher_All() { var matcher = LoggerNameMatcher.Create("*"); Assert.Equal("logNamePattern: (:All)", matcher.ToString()); }
public void LoggerNameMatcher_Empty() { var matcher = LoggerNameMatcher.Create(""); Assert.Equal("logNamePattern: (:Equals)", matcher.ToString()); }
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()); }
public void LoggerNameMatcher_None() { var matcher = LoggerNameMatcher.Create(null); Assert.Equal("logNamePattern: (:None)", matcher.ToString()); }
public void LoggerNameMatcher_MultiplePattern_QuestionMark() { var matcher = LoggerNameMatcher.Create("a?bc"); Assert.Equal("logNamePattern: (^a.bc$:MultiplePattern)", matcher.ToString()); }
public void LoggerNameMatcher_MultiplePattern_StarInternal() { var matcher = LoggerNameMatcher.Create("a*bc"); Assert.Equal("logNamePattern: (^a.*bc$:MultiplePattern)", matcher.ToString()); }
public void LoggerNameMatcher_Contains() { var matcher = LoggerNameMatcher.Create("*abc*"); Assert.Equal("logNamePattern: (abc:Contains)", matcher.ToString()); }
public void LoggerNameMatcher_EndsWith() { var matcher = LoggerNameMatcher.Create("*abc"); Assert.Equal("logNamePattern: (abc:EndsWith)", matcher.ToString()); }
public void LoggerNameMatcher_StartsWith() { var matcher = LoggerNameMatcher.Create("abc*"); Assert.Equal("logNamePattern: (abc:StartsWith)", matcher.ToString()); }