public void TestRemoveDuplicateString() { string actual = "aabbc"; string expected = "abc"; Assert.IsTrue(StringRemoveDuplicateChar.RemoveDuplicateChar(actual).Equals(expected)); actual = "abcabcaa"; Assert.IsTrue(StringRemoveDuplicateChar.RemoveDuplicateChar(actual).Equals(expected)); actual = "abc"; Assert.IsTrue(StringRemoveDuplicateChar.RemoveDuplicateChar(actual).Equals(expected)); }
public void TestEmptyString() { Assert.IsTrue(string.IsNullOrEmpty(StringRemoveDuplicateChar.RemoveDuplicateChar(string.Empty))); }