public static void Run(string text, char character, IConsole console) { // Execute var result = RemoveConsecutiveCharacter.Run(text, character); // Display result console.Out.WriteLine($"Result: { result }"); }
public void Run_WhenCalled_ReturnsValidResult(string text, char theChar, string expected) { var actual = RemoveConsecutiveCharacter.Run(text, theChar); Assert.Equal(expected, actual); }