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); }
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); }
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); }
public void Verify_git_checkout_history_configuration() { var checkoutHistoryCommand = new CheckoutHistoryCommand(); checkoutHistoryCommand.Handler.Should().NotBeNull(); }