예제 #1
0
        public void IsValidTest()
        {
            var q = new ArrayQ();

            Assert.AreEqual(true, q.IsValid(""));
            Assert.AreEqual(true, q.IsValid("()"));
            Assert.AreEqual(true, q.IsValid("()[]{}"));
            Assert.AreEqual(false, q.IsValid("(]"));
            Assert.AreEqual(false, q.IsValid("([)]"));
            Assert.AreEqual(true, q.IsValid("{[]}"));
            Assert.AreEqual(false, q.IsValid("(("));
        }