Ejemplo n.º 1
0
 public void TestTruncateWords()
 {
     Assert.AreEqual("one two three", StandardFilters.Truncatewords("one two three", 4));
     Assert.AreEqual("one two...", StandardFilters.Truncatewords("one two three", 2));
     Assert.AreEqual("one two three", StandardFilters.Truncatewords("one two three"));
     Assert.AreEqual("Two small (13” x 5.5” x 10” high) baskets fit inside one large basket (13”...", StandardFilters.Truncatewords("Two small (13” x 5.5” x 10” high) baskets fit inside one large basket (13” x 16” x 10.5” high) with cover.", 15));
 }