예제 #1
0
        public void Count_QU_AsAConsonantEvenWhenPreceededByAConsonant()
        {
            Translator translator = new Translator();

            Assert.AreEqual("aresquay", translator.Translate("square"));
        }
예제 #2
0
        public void TranslateManyWords()
        {
            Translator translator = new Translator();

            Assert.AreEqual("ethay ickquay ownbray oxfay", translator.Translate("the quick brown fox"));
        }
예제 #3
0
        public void Count_SCH_AsASinglePhoneme()
        {
            Translator translator = new Translator();

            Assert.AreEqual("oolschay", translator.Translate("school"));
        }
예제 #4
0
        public void Count_QU_AsASinglePhoneme()
        {
            Translator translator = new Translator();

            Assert.AreEqual("ietquay", translator.Translate("quiet"));
        }
예제 #5
0
        public void TranslateWordBeginningWithThreeConsonants()
        {
            Translator translator = new Translator();

            Assert.AreEqual("eethray", translator.Translate("three"));
        }
예제 #6
0
        public void TranslateTwoWords()
        {
            Translator translator = new Translator();

            Assert.AreEqual("eatay iepay", translator.Translate("eat pie"));
        }
예제 #7
0
        public void TranslateWordBeginningWithTwoConsonants()
        {
            Translator translator = new Translator();

            Assert.AreEqual("errychay", translator.Translate("cherry"));
        }
예제 #8
0
        public void TranslateWordBeginningWithAConsonant()
        {
            Translator translator = new Translator();

            Assert.AreEqual("ananabay", translator.Translate("banana"));
        }
예제 #9
0
        public void TranslateWordBeginningWithAVowel()
        {
            Translator translator = new Translator();

            Assert.AreEqual("appleay", translator.Translate("apple"));
        }