예제 #1
0
        public void Test_PIGLATIN_TRANSLATION2()
        {
            string             word = "Adam";
            PigLatinTranslator t    = new PigLatinTranslator();

            word = t.Translate(word);
            Assert.IsTrue(word == "Adamway");
        }
예제 #2
0
        public void Test_PIGLATIN_TRANSLATION3()
        {
            string             word = "*****@*****.**";
            PigLatinTranslator t    = new PigLatinTranslator();

            word = t.Translate(word);
            Assert.IsTrue(word == "*****@*****.**");
        }
예제 #3
0
        public void Test_SYMBOLS()
        {
            PigLatinTranslator t      = new PigLatinTranslator();
            string             phrase = "this is just a test!";

            phrase = t.Translate(phrase);
            Assert.IsTrue(phrase == "histay isway ustjay away esttay!");
        }