コード例 #1
0
 private void BtnSubmit_Click(object sender, EventArgs e)
 {
     _Input              = this.txtInput.Text;
     _MorseCode          = TextToMorseConverter.Convert(_Input);
     this.txtOutput.Text = _MorseCode;
 }
コード例 #2
0
        public void AndValidInputProvidedThenValidMorseReturned(string text, string morseCode)
        {
            string result = TextToMorseConverter.Convert(text);

            Assert.AreEqual(result, morseCode);
        }