예제 #1
0
 public void testEllipsize()
 {
     string str = "MaresEatOatsAnd";
     string str2 = "MaresEatOats...";
     StringTheory theory = new StringTheory("MaresEatOatsAnd");
     theory.Ellipsize(15);
     Assert.True(str.Equals(theory.ToString()), "str (1) doesn't match the comparison string!");
     theory = new StringTheory("MaresEatOatsAndDoesEatOats");
     theory.Ellipsize(15);
     Assert.True(str2.Equals(theory.ToString()), "str (2) doesn't match the ref2 string!");
 }