Ad
  • Custom User Avatar

    It's LoL

    testEmptyMessage
    Test Failed
    Expected string length 0 but was 1. Strings differ at index 0.
    Expected: <string.Empty>
    But was: "E"
    -----------^

    public static string decodeMorse(string morseCode)
    if(string.IsNullOrWhiteSpace (morseCode)) { return string.Empty; }

  • Custom User Avatar
            Assert.AreEqual ("I can read morse code",
              Kata.Decode (".. / -.-. .- -. / .-. . .- -.. / -- --- .-. ... . / -.-. --- -.. ."));
              Check this simple test for first char