예제 #1
0
 public void testTabsToSpaces()
 {
     string str = "     123456     ";
     StringTheory theory = new StringTheory("\t123456\t");
     theory.TabsToSpaces(5);
     Assert.True(str.Equals(theory.ToString()), "tabsToSpaces' result doesn't match the comparison string!");
     str = "123456";
     theory = new StringTheory("123456");
     theory.TabsToSpaces(-1);
     Assert.True(str.Equals(theory.ToString()), "tabsToSpaces failed using a bogus quantity");
 }