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

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