private void BtnSubmit_Click(object sender, EventArgs e) { _Input = this.txtInput.Text; _MorseCode = TextToMorseConverter.Convert(_Input); this.txtOutput.Text = _MorseCode; }
public void AndValidInputProvidedThenValidMorseReturned(string text, string morseCode) { string result = TextToMorseConverter.Convert(text); Assert.AreEqual(result, morseCode); }