public void EmptyPatternMatchTest() { IStringMatcher stringMatcher = CreateStringMatcher(""); Assert.IsTrue(stringMatcher.MatchTo("1")); Assert.IsTrue(stringMatcher.MatchTo(" ")); Assert.IsTrue(stringMatcher.MatchTo("test")); }
public void EmptyTextMatchTest() { IStringMatcher stringMatcher = CreateStringMatcher("1"); Assert.IsFalse(stringMatcher.MatchTo("")); stringMatcher = CreateStringMatcher(" "); Assert.IsFalse(stringMatcher.MatchTo("")); stringMatcher = CreateStringMatcher("test"); Assert.IsFalse(stringMatcher.MatchTo("")); }
public void MatchTest5() { IStringMatcher stringMatcher = CreateStringMatcher("y"); Assert.IsFalse(stringMatcher.MatchTo("other input string")); }
public void MatchTest4() { IStringMatcher stringMatcher = CreateStringMatcher("ncet"); Assert.IsFalse(stringMatcher.MatchTo("some sentence")); }
public void MatchTest2() { IStringMatcher stringMatcher = CreateStringMatcher("ent"); Assert.IsTrue(stringMatcher.MatchTo("some sentence")); }
public void MatchTwoEmptyStringsTest() { IStringMatcher stringMatcher = CreateStringMatcher(""); Assert.IsTrue(stringMatcher.MatchTo("")); }
public void MatchGuardCase1Test() { IStringMatcher stringMatcher = CreateStringMatcher("1"); stringMatcher.MatchTo(null); }