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