public void HasMatch() { Assert.True(BracketMatcher.HasMatches("{}")); }
public void IgnoresOtherCharacters() { Assert.True(BracketMatcher.HasMatches("{dkflksdfkjdf} kjdkjfksdf {lkjslkjsdf}")); }
public void NullIsInvalid() { Assert.Throws <ArgumentNullException>(() => BracketMatcher.HasMatches(null)); }
public void LotsOfMatches() { Assert.True(BracketMatcher.HasMatches("{{}{}{}{}{}{}{}{}{{}{}{}{}{{}{}{}{}{}}}}")); }
public void NoClosing() { Assert.False(BracketMatcher.HasMatches("{{{{{{{{{{{{")); }
public void EmptyIsValid() { Assert.True(BracketMatcher.HasMatches("")); }
public void MissingClosing() { Assert.False(BracketMatcher.HasMatches("{{}")); }
public void OutOfOrder() { Assert.False(BracketMatcher.HasMatches("}{")); }