Exemple #1
0
 public void IsPatternMatch_NoPattern_ReturnsFalse()
 {
     Assert.IsFalse(WordPattern.IsPatternMatch("abba", "dog cat dog cat"));
 }
Exemple #2
0
 public void IsPatternMatch_MatchingPattern_ReturnsTrue()
 {
     Assert.IsTrue(WordPattern.IsPatternMatch("abba", "dog cat cat dog"));
 }
Exemple #3
0
 public void IsPatternMatch_EmptyStringPattern_ReturnsTrue()
 {
     Assert.IsTrue(WordPattern.IsPatternMatch("", ""));
 }