예제 #1
0
    public void Verify_argument_configuration(string alias, ArgumentArity arity, int elementIndex)
    {
        var checkoutHistoryCommand = new CheckoutHistoryCommand();
        var argument = checkoutHistoryCommand.Arguments.ElementAt(elementIndex);

        argument.Name.Should().Be(alias);
        argument.Arity.Should().BeEquivalentTo(arity);
    }
예제 #2
0
    public void Verify_git_path_option_configuration()
    {
        var checkoutHistoryCommand = new CheckoutHistoryCommand();
        var option = checkoutHistoryCommand.Options.ElementAt(0);

        option.Name.Should().Be("git-path");
        option.Arity.Should().BeEquivalentTo(ArgumentArity.ZeroOrOne);
    }
예제 #3
0
    public GitCommand()
        : base("git", CliOutput.Help_GitCommand_Description)
    {
        var clone = new GitCloneCommand();

        AddCommand(clone);

        var checkoutHistoryCommand = new CheckoutHistoryCommand();

        AddCommand(checkoutHistoryCommand);

        var computeHistoryCommand = new ComputeHistoryCommand();

        AddCommand(computeHistoryCommand);
    }
예제 #4
0
    public void Verify_git_checkout_history_configuration()
    {
        var checkoutHistoryCommand = new CheckoutHistoryCommand();

        checkoutHistoryCommand.Handler.Should().NotBeNull();
    }