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