public void TrimTextTest() { var StringService = new StringService(); string s1 = "123456789"; string r1 = StringService.TrimText(s1, 5, string.Empty); Assert.AreEqual(r1, "12345"); }