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