Exemplo n.º 1
0
 public void ShouldDecodeAndEncode()
 {
     var simon = new Simon();
     var signal = "-- --- .-. ... .    -.-. --- -.. . ";
     var result = simon.Decode(signal);
     Assert.AreEqual("morse code", result);
     var encodedResult = simon.Encode(result);
     Assert.AreEqual(encodedResult, signal);
 }
Exemplo n.º 2
0
 public void DoobeyDoobeyDoo()
 {
     var simon = new Simon();
     var result = simon.Encode("fuzzy wuzzy was a bear");
     var reverse = simon.Decode(result);
 }