public void StringTokenTest() { foreach (var s in StringToken.ClosingTokens) { if (s.Length == 1) { Char ch = s[0]; Assert.AreEqual(ch.IsClosingToken(), true); } Assert.AreEqual(StringToken.IsClosingToken(s), true); Assert.AreEqual(s.IsClosingToken(), true); } foreach (var s in StringToken.OpeningTokens) { if (s.Length == 1) { Char ch = s[0]; Assert.AreEqual(ch.IsOpeningToken(), true); } Assert.AreEqual(StringToken.IsOpeningToken(s), true); Assert.AreEqual(s.IsOpeningToken(), true); } }