Esempio n. 1
0
 public void StrRightWorks()
 {
     Assert.AreEqual("EFG", MHString.StrRight("ABCDEFG", 3), "t1");
     Assert.AreEqual("ABCDEFG", MHString.StrRight("ABCDEFG", 99), "t2");
     Assert.AreEqual(string.Empty, MHString.StrRight("ABCDEFG", 0), "t3");
     Assert.AreEqual(string.Empty, MHString.StrRight("ABCDEFG", -1), "t4");
 }