Example #1
0
 public void test5()
 {
     Assert.AreEqual(false, AllThatIsOpenMustBeClosed.IsBalanced("Sensei -says no!", "--"));
 }
Example #2
0
 public void testNotMatchingButEven()
 {
     Assert.AreEqual(false, AllThatIsOpenMustBeClosed.IsBalanced("Sensei [{says no!]}", "[]{}"));
 }
Example #3
0
 public void test4()
 {
     Assert.AreEqual(true, AllThatIsOpenMustBeClosed.IsBalanced("Sensei says -yes-!", "--"));
 }
Example #4
0
 public void test3()
 {
     Assert.AreEqual(false, AllThatIsOpenMustBeClosed.IsBalanced("(Sensei [says) no!]", "()[]"));
 }
Example #5
0
 public void test2()
 {
     Assert.AreEqual(true, AllThatIsOpenMustBeClosed.IsBalanced("(Sensei [says] yes!)", "()[]"));
 }
Example #6
0
 public void test1()
 {
     Assert.AreEqual(false, AllThatIsOpenMustBeClosed.IsBalanced("(Sensei says no!", "()"));
 }
Example #7
0
 public void ParensOnly()
 {
     Assert.AreEqual(true, AllThatIsOpenMustBeClosed.IsBalanced("(Sensei says yes!)", "()"));
 }