Exemplo n.º 1
0
            public void should_return_error_exit_code()
            {
                ExitCode exitCode = createSiteCommand.Execute(new string[] { "" });

                exitCode.ShouldBe(ExitCode.Error);
            }
Exemplo n.º 2
0
 public void Then_I_should_see_mulder_terminate_with_an_error_exit_code_due_to_path_existing()
 {
     exitCode.ShouldBe(ExitCode.Error);
 }
Exemplo n.º 3
0
 public void Then_mulder_should_terminate_with_an_success_exit_code()
 {
     exitCode.ShouldBe(ExitCode.Success);
 }
Exemplo n.º 4
0
            public void should_return_success_exit_code()
            {
                ExitCode exitCode = createSiteCommand.ShowHelp(new string[] {});

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 5
0
            public void should_return_sub_command_exit_code()
            {
                ExitCode exitCode = createCommand.ShowHelp(new string[] { subCommandArgument });

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 6
0
            public void should_return_error_exit_code()
            {
                ExitCode exitCode = createCommand.ShowHelp(new string[] { invalidSubCommandArgument });

                exitCode.ShouldBe(ExitCode.Error);
            }
Exemplo n.º 7
0
            public void should_return_error_exit_code()
            {
                ExitCode exitCode = entryPoint.Run(new string[] { invalidArgument });

                exitCode.ShouldBe(ExitCode.Error);
            }
Exemplo n.º 8
0
            public void should_return_success_exit_code()
            {
                ExitCode exitCode = compileCommand.Execute(new string[] {});

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 9
0
            public void should_return_command_exit_code()
            {
                ExitCode exitCode = entryPoint.Run(new string[] { commandArgument });

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 10
0
            public void should_return_success_exit_code_for_help_command()
            {
                ExitCode exitCode = entryPoint.Run(new string[] { helpCommand });

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 11
0
            public void should_return_success_exit_code_for_long_argument()
            {
                ExitCode exitCode = entryPoint.Run(new string[] { helpOptionArgumentLong });

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 12
0
            public void should_return_success_exit_code_for_question_mark_argument()
            {
                ExitCode exitCode = entryPoint.Run(new string[] { helpOptionArgumentQuestionMark });

                exitCode.ShouldBe(ExitCode.Success);
            }
Exemplo n.º 13
0
 public void Then_I_should_see_mulder_terminate_with_an_error_exit_code()
 {
     exitCode.ShouldBe(ExitCode.Error);
 }