void EncodeFullText(string input, string expectedMorse, bool pass = true) { var morseCode = new MorseCode(); string morseCodeResult = morseCode.EncodeFullText(input); bool equals = morseCodeResult == expectedMorse; Assert.True(equals == pass); }