Esempio n. 1
0
 public void TestReverseChar()
 {
     char[] buffer = { 'A', 'B', 'C', 'D', 'E', 'F' };
     ReverseStringFilter.Reverse(buffer, 2, 3);
     Assert.AreEqual("ABEDCF", new String(buffer));
 }
Esempio n. 2
0
 public void TestReverseString()
 {
     Assert.AreEqual("A", ReverseStringFilter.Reverse("A"));
     Assert.AreEqual("BA", ReverseStringFilter.Reverse("AB"));
     Assert.AreEqual("CBA", ReverseStringFilter.Reverse("ABC"));
 }