Exemple #1
0
        public static void Main()
        {
            Speak newSpeak = new Speak();

            Console.WriteLine("Enter a word or phrase, and I will translate it into Leetspeak: ");
            string userInput = Console.ReadLine();

            newSpeak.Translate(userInput);
        }
Exemple #2
0
 public void Translate_ChangeOToZero_true()
 {
     Speak testPhrase = new Speak() {};
       string actualPhrase = "0rang";
       Assert.Equal(actualPhrase, testPhrase.Translate("orang"));
 }
Exemple #3
0
 public void Translate_ChangeStoZ_true()
 {
     Speak testPhrase = new Speak() {};
       string actualPhrase = "Suzp3ct";
       Assert.Equal(actualPhrase, testPhrase.Translate("Suspect"));
 }
Exemple #4
0
 public void Translate_ChangeCapitalIToOne_true()
 {
     Speak testPhrase = new Speak() {};
       string actualPhrase = "1r0n";
       Assert.Equal(actualPhrase, testPhrase.Translate("Iron"));
 }