Exemplo n.º 1
0
 public void testStrip()
 {
     string str = "123456";
     string str2 = "";
     StringTheory theory = new StringTheory("1 2   3\t 4\t\t\t\t\t\t5 6              ");
     theory.Strip();
     Assert.True(str.Equals(theory.ToString()), "strip test 1 results don't match the comparison string!");
     theory = new StringTheory("\t    \t\t  \t\t\t \t              ");
     theory.Strip();
     Assert.True(str2.Equals(theory.ToString()), "strip test 2 results don't match the comparison string!");
 }