public void VerifyNoDuplicatesLeavesStringUnchanged() { string output = DuplicateRemover.Remove("hello"); Assert.AreEqual("hello", output); }
public void VerifyThreeCharMatchIsHandled() { string output = DuplicateRemover.Remove("helhel"); Assert.AreEqual("hel", output); }
public void EmptyStringReturnsEmptyString() { string output = DuplicateRemover.Remove(string.Empty); Assert.IsEmpty(output); }
public void NullStringReturnsEmptyString() { string output = DuplicateRemover.Remove(null); Assert.IsEmpty(output); }
public void VerifyShortStringsAreUnchanged() { string output = DuplicateRemover.Remove("he"); Assert.AreEqual("he", output); }
public void VerifySimpleOutput() { string output = DuplicateRemover.Remove("hellohello"); Assert.AreEqual("hello", output); }