public static void Run(string text, IConsole console)
        {
            // Execute
            var result = RemoveAllConsecutiveCharacters.Run(text);

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

            Assert.Equal(expected, actual);
        }