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