示例#1
0
        public void GenerateMetaphoneCodeForInventory()
        {
            IPhoneticMatch phonetic = new Metaphone();
            var            token1   = phonetic.CreateToken("inventory");
            var            token2   = phonetic.CreateToken("invintury");

            Assert.AreEqual(token1, token2);
        }
示例#2
0
        public void GenerateMetaphoneCodeForGetandFet()
        {
            IPhoneticMatch phonetic = new Metaphone();
            var            token1   = phonetic.CreateToken("get");
            var            token2   = phonetic.CreateToken("geht");

            Assert.AreEqual(token1, token2);
        }
示例#3
0
        public void GenerateMetaphoneCodeForTakeMixedCase()
        {
            IPhoneticMatch phonetic = new Metaphone();
            var            token1   = phonetic.CreateToken("tAke");
            var            token2   = phonetic.CreateToken("taEK");

            Assert.AreEqual(token1, token2);
        }
示例#4
0
        public void GenerateMetaphoneCodeForStephenAndGeorge()
        {
            IPhoneticMatch phonetic = new Metaphone();
            var            token1   = phonetic.CreateToken("Stephen");
            var            token2   = phonetic.CreateToken("George");

            Assert.AreNotEqual(token1, token2);
        }