public void GenerateMetaphoneCodeForInventory() { IPhoneticMatch phonetic = new Metaphone(); var token1 = phonetic.CreateToken("inventory"); var token2 = phonetic.CreateToken("invintury"); Assert.AreEqual(token1, token2); }
public void GenerateMetaphoneCodeForGetandFet() { IPhoneticMatch phonetic = new Metaphone(); var token1 = phonetic.CreateToken("get"); var token2 = phonetic.CreateToken("geht"); Assert.AreEqual(token1, token2); }
public void GenerateMetaphoneCodeForTakeMixedCase() { IPhoneticMatch phonetic = new Metaphone(); var token1 = phonetic.CreateToken("tAke"); var token2 = phonetic.CreateToken("taEK"); Assert.AreEqual(token1, token2); }
public void GenerateMetaphoneCodeForStephenAndGeorge() { IPhoneticMatch phonetic = new Metaphone(); var token1 = phonetic.CreateToken("Stephen"); var token2 = phonetic.CreateToken("George"); Assert.AreNotEqual(token1, token2); }