Пример #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));
        }