public void With_Values_Returns_Translation(string message, string translation) { var translator = new MorseTranslator(); string response = translator.Translate(message); Assert.That(response, Is.EqualTo(translation)); }
public void String_Message_Return_Morse_Code(string message, string morseCode) { var translator = new MorseTranslator(); string response = translator.Translate(message); Assert.That(response, Is.EqualTo(morseCode)); }
static void Main(string[] args) { MorseTranslator test = new MorseTranslator(); test.Translate("ADERLIS Y EDWIN"); }
public void Null_Message_Return_ArgumentNullException() { var translator = new MorseTranslator(); Assert.Throws(Is.TypeOf <ArgumentNullException>(), () => translator.Translate(null)); }