コード例 #1
0
        public static void Run(string text, char character, IConsole console)
        {
            // Execute
            var result = RemoveConsecutiveCharacter.Run(text, character);

            // Display result
            console.Out.WriteLine($"Result: { result }");
        }
コード例 #2
0
        public void Run_WhenCalled_ReturnsValidResult(string text, char theChar, string expected)
        {
            var actual = RemoveConsecutiveCharacter.Run(text, theChar);

            Assert.Equal(expected, actual);
        }