示例#1
0
    public void Verify_argument_configuration()
    {
        var computeHistoryCommand = new ComputeHistoryCommand();
        var argument = computeHistoryCommand.Arguments.ElementAt(0);

        argument.Name.Should().Be("repository-id");
        argument.Arity.Should().BeEquivalentTo(ArgumentArity.ExactlyOne);
    }
示例#2
0
    public void Verify_option_configuration(string alias, ArgumentArity arity, int elementIndex)
    {
        var computeHistoryCommand = new ComputeHistoryCommand();
        var option = computeHistoryCommand.Options.ElementAt(elementIndex);

        option.Name.Should().Be(alias);
        option.Arity.Should().BeEquivalentTo(arity);
    }
示例#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);
    }