public void Parsing_ProvidingArgumentOutsideOfDataAnnotationRange_CallToHelpTextProvider()
        {
            //Arrange
            var outputMock   = new Mock <IOutputProvider>();
            var errorMessage = "The field RequiredInteger must be between 0 and 10.";

            var arguments = new string[] { "11", "requiredString" };
            var command   = new RequiredArgumentsCommand()
            {
                Output = outputMock.Object
            };

            //Act
            var a = command.Execute(arguments);

            //Assert
            outputMock.Verify(o => o.ShowError(It.Is <string>(s => s.Equals(errorMessage))), Times.Once());
        }
        public void Parsing_ProvidingNotEnoughArgumentsToCommandWithRequiredArguments_RequiredArgumentMissingCalled()
        {
            //Arrange
            var outputMock   = new Mock <IOutputProvider>();
            var errorMessage = new RequiredArgumentException("required-string-argument").Message;

            var arguments = new[] { "1" };
            var command   = new RequiredArgumentsCommand()
            {
                Output = outputMock.Object
            };

            //Act
            command.Execute(arguments);

            //Assert
            outputMock.Verify(o => o.ShowError(It.Is <string>(s => s.Equals(errorMessage))), Times.Once());
        }