コード例 #1
0
 public void When_NotWellFormed_ThenFalseReturned()
 {
     Assert.IsFalse(Chapter09.IsWellFormed(null));
     Assert.IsFalse(Chapter09.IsWellFormed(string.Empty));
     Assert.IsFalse(Chapter09.IsWellFormed("{}()["));
     Assert.IsFalse(Chapter09.IsWellFormed("{}()[]]"));
 }
コード例 #2
0
 public void When_WellFormed_Then_TrueReturned()
 {
     Assert.IsTrue(Chapter09.IsWellFormed("{}()[]"));
     Assert.IsTrue(Chapter09.IsWellFormed("{[]}()[]"));
 }