public void TwoSetsOfTokensDontMatchIfNotBothMatch() { TokenString testCase = new TokenString("(ab)(cd)"); TokenString word = new TokenString("bb"); Assert.IsFalse(testCase.Matches(word)); }
public void TwoSetsOfTokensMatchIfBothMatch() { TokenString testCase = new TokenString("(ab)(cd)"); TokenString word = new TokenString("bc"); Assert.IsTrue(testCase.Matches(word)); }
public void TwoLetterTokensMatchWordTokenIfItContainsTheLetter() { TokenString testCase = new TokenString("(ab)"); TokenString word = new TokenString("a"); Assert.IsTrue(testCase.Matches(word)); }
public void TwoLetterTokensDoNotMatchIfWordTokenDontContainTheLetter() { TokenString testCase = new TokenString("(ab)"); TokenString word = new TokenString("c"); Assert.IsFalse(testCase.Matches(word)); }
public void CompareIdenticalOneLetterStrings() { TokenString testCase = new TokenString("a"); TokenString word = new TokenString("a"); Assert.IsTrue(testCase.Matches(word)); }