public void ShouldEncodeWithExtraSpaces() { var phrase = "2 lnfre lodhie"; var expectedOutput = "hello friend"; var output = IRC.Decode(phrase); output.Should().BeEquivalentTo(expectedOutput); }
public void ShouldDecodeOneWordWithOneRotation() { var phrase = "1 lohel"; var expectedOutput = "hello"; var output = IRC.Decode(phrase); output.Should().BeEquivalentTo(expectedOutput); }
public void ShouldDecodeTwoWordsWithOneRotation() { var phrase = "1 ldhel nofrie"; var expectedOutput = "hello friend"; var output = IRC.Decode(phrase); output.Should().BeEquivalentTo(expectedOutput); }