Beispiel #1
0
        public void IncorrectUseOfEmptyAttribute()
        {
            var    args  = new IncorrectlyUsedMustNotBeEmptyAttributeArguments();
            Action parse = () => CommandLineParser.Parse(new[] { "/value=5" }, args);

            parse.ShouldThrow <InvalidArgumentSetException>();
        }
Beispiel #2
0
 public void IncorrectUseOfEmptyAttribute()
 {
     var args = new IncorrectlyUsedMustNotBeEmptyAttributeArguments();
     Action parse = () => CommandLineParser.Parse(new[] { "/value=5" }, args);
     parse.ShouldThrow<InvalidArgumentSetException>();
 }