コード例 #1
0
        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>());
        }
コード例 #2
0
        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"));
        }
コード例 #3
0
        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>());
        }