Пример #1
0
        public void Test2()
        {
            string input = "a[(3+2)*3";

            Assert.AreEqual(false, Opgave1.CheckParenthesis(input));
        }
Пример #2
0
        public void Test1()
        {
            string input = "a[(3+2)*3]";

            Assert.AreEqual(true, Opgave1.CheckParenthesis(input));
        }
Пример #3
0
        public void TestTabs()
        {
            string input = "\t\t";

            Assert.AreEqual(true, Opgave1.CheckParenthesis(input));
        }
Пример #4
0
        public void TestNull()
        {
            string input = null;

            Assert.AreEqual(true, Opgave1.CheckParenthesis(input));
        }
Пример #5
0
        public void TestSpaces()
        {
            string input = "  ";

            Assert.AreEqual(true, Opgave1.CheckParenthesis(input));
        }