public void EmptyStringReturnNoDuplicates() { Assert.AreEqual(0, Kata.DuplicateCount("")); }
public void MultipleDuplicatesNonAdjacentlyCharacters() { Assert.AreEqual(2, Kata.DuplicateCount("Indivisibilities"), "characters may not be adjacent"); }
public void DuplicateNonAdjacentlyCharacters() { Assert.AreEqual(1, Kata.DuplicateCount("Indivisibility")); }
public void MultipleDuplicatesIgnoreCase() { Assert.AreEqual(2, Kata.DuplicateCount("aabBcde"), "should ignore case"); }
public void MultipleDuplicatesAdjacentCharacters() { Assert.AreEqual(2, Kata.DuplicateCount("aabbcde")); }
public void NoDuplicatesString() { Assert.AreEqual(0, Kata.DuplicateCount("abcde")); }