public void DecodeMorse_ShouldReturnDecodedString_WhenPassedMultipleWordStr(string original, bool toMorse, string expected) { // arrange var sut = new MorseCode(); // act var actual = sut.MorseDecode(original, toMorse); // assert Assert.Equal(expected, actual); }
public void DecodeMorse_ShouldReturnEmptyString_WhenPassedNullOrEmpty(string morseCode, bool toMorse) { // arrange string expected = string.Empty; var sut = new MorseCode(); // act var actual = sut.MorseDecode(morseCode, toMorse); // assert Assert.Equal(expected, actual); }