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); }
public void DoobeyDoobeyDoo() { var simon = new Simon(); var result = simon.Encode("fuzzy wuzzy was a bear"); var reverse = simon.Decode(result); }