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); }
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); }
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); }