public void CombinesDuplicateEncodingsSeparatedByHOrW() { Assert.AreEqual("J100", Soundex.EncodeToSoundex("Jbwb")); }
public void DoesNotCombineDuplicateEncodingsSeparatedByVowels() { Assert.AreEqual("J110", Soundex.EncodeToSoundex("Jbob")); }
public void CombinesDuplicateCodesWhen2ndLetterDuplicates1st() { Assert.AreEqual("B230", Soundex.EncodeToSoundex("Bbcd")); }
public void UppercasesFirst() { Assert.AreEqual("A123", Soundex.EncodeToSoundex("abcd")); }
public void ReplacesConsonantsWithAppropriateDigitsIgnoresCase() { Assert.AreEqual("B234", Soundex.EncodeToSoundex("BCDL")); }
public void IgnoresVowelLikeLetters() { Assert.AreEqual("C123", Soundex.EncodeToSoundex("CAaEeIiOoUuHhYybcd")); }
public void CombinesDuplicateEncodings() { Assert.AreEqual("G123", Soundex.EncodeToSoundex("Gbfcgdt")); }
public void ReplacesThreeConsonantsWithAppropriateDigits() { Assert.AreEqual("A256", Soundex.EncodeToSoundex("Ajmr")); }
public void LimitsLengthToFourCharacters() { Assert.AreEqual("D123", Soundex.EncodeToSoundex("Dbcdlmr")); }
public void ReplacesTwoConsonantsWithAppropriateDigits() { Assert.AreEqual("A340", Soundex.EncodeToSoundex("Adl")); }
public void ReplacesConsonantCWithDigit2() { Assert.AreEqual("A200", Soundex.EncodeToSoundex("Ac")); }
public void ReplacesConsonantBWithDigit1() { Assert.AreEqual("A100", Soundex.EncodeToSoundex("Ab")); }
public void PadsWithZeroesToEnsureThreeDigits() { Assert.AreEqual("I000", Soundex.EncodeToSoundex("I")); }
public void RetainsSoleLetterOfOneLetterWord() { Assert.AreEqual("A000", Soundex.EncodeToSoundex("A")); }