public void TestGetLetter() { Morse m = new Morse(); char letterO = m.GetLetter("---"); Assert.AreEqual('O', letterO); char letterS = m.GetLetter("..."); Assert.AreEqual('S', letterS); }
public void TestGetCode() { Morse m = new Morse(); string codeS = m.GetCode('S'); Assert.AreEqual("...", codeS); string codeO = m.GetCode('O'); Assert.AreEqual("---", codeO); }
public void TestTranslateIntoCode() { Morse m = new Morse(); string nee = m.TranslateIntoCode("nee"); Assert.AreEqual("-. . .", nee); }