示例#1
0
        public void TestUnbalancedParentheses()
        {
            var testString = "[(])";

            Assert.AreEqual(false, Parentheses.CheckIfBalanced(testString));
        }
示例#2
0
        public void TestBalancedParentheses()
        {
            var testString = "[()]{}{[()()]()}";

            Assert.AreEqual(true, Parentheses.CheckIfBalanced(testString));
        }