コード例 #1
0
        public void ReturnsValidationContextWithErrorsForMissingMandatoryOptions()
        {
            var commandLineParser = CreateCommandLineParser();

            var context           = new TestContextWithMandatoryOption();
            var validationContext = commandLineParser.Parse(string.Empty, context);

            Assert.IsTrue(validationContext.HasErrors);
        }
コード例 #2
0
        public void ReturnsValidationContextWithErrorsForMissingMandatoryOptions()
        {
            var commandLineParser = CreateCommandLineParser();

            var context = new TestContextWithMandatoryOption();
            var validationContext = commandLineParser.Parse("", context);

            Assert.IsTrue(validationContext.HasErrors);
        }