Ejemplo n.º 1
0
 public void testSpacesToTabs()
 {
     string str = "\t 123456\t   ";
     StringTheory theory = new StringTheory("      123456        ");
     theory.SpacesToTabs(5);
     Assert.True(str.Equals(theory.ToString()), "'tabsToSpaces' result doesn't match the comparison string!:" + theory);
     str = "123456";
     theory = new StringTheory("123456");
     theory.SpacesToTabs(-1);
     Assert.True(str.Equals(theory.ToString()), "tabsToSpaces failed using a bogus quantity");
 }