public void Run_Coverage_Runner_When_All_Mandatory_Parameters_Are_Provided() { var consoleRunner = new ConsoleRunner(_consoleMock, _coverageRunnerMock); consoleRunner.ProcessCommand("TestProject//OutputPath"); _consoleMock.DidNotReceive().WriteLine(Arg.Any <string>()); _coverageRunnerMock.Received(1).Run(Arg.Any <string>(), Arg.Any <string>()); }
public void Sanatise_Input_To_Remove_Quotes() { var consoleRunner = new ConsoleRunner(_consoleMock, _coverageRunnerMock); consoleRunner.ProcessCommand("\"TestProject//OutputPath\"", "\"report.xml\""); _consoleMock.DidNotReceive().WriteLine(Arg.Any <string>()); _coverageRunnerMock.Received(1).Run(Arg.Is("TestProject//OutputPath"), Arg.Is("report.xml")); }
public void Show_Usage_When_Not_All_Mandatory_Parameters_Are_Provided(params string[] inputArgs) { var consoleRunner = new ConsoleRunner(_consoleMock, _coverageRunnerMock); consoleRunner.ProcessCommand(inputArgs); _consoleMock.Received(1).WriteLine(Arg.Any <string>()); _coverageRunnerMock.DidNotReceive().Run(Arg.Any <string>(), Arg.Any <string>()); }