Example #1
0
        public void ReversePositions_ReturnsString_WithGivenSections_Reversed(string instruction, string input, string expected)
        {
            var actual = new ReversePositionsRule().Scramble(input, instruction);

            Assert.Equal(expected, actual);
        }
Example #2
0
        public void Descramble_Reverses_Reversal(string instruction, string input, string expected)
        {
            var actual = new ReversePositionsRule().Descramble(input, instruction);

            Assert.Equal(expected, actual);
        }