Beispiel #1
0
        public void CheckBracketsTest1()
        {
            string       testInput = "{[]}()";
            CheckBracket cb        = new CheckBracket();
            var          result    = cb.Check_Brackets(testInput);

            Assert.AreEqual(result, -1);
        }
Beispiel #2
0
        public void CheckBracketsTest3()
        {
            string       testInput = "foo(bar[i);";
            CheckBracket cb        = new CheckBracket();
            var          result    = cb.Check_Brackets(testInput);

            Assert.AreEqual(result, 10);
        }