Exemplo n.º 1
0
        public void CanCorrectlyHandleDifferentAlternativeSwitchFormatsFoundInOneSingleTokenOnly(string switchText)
        {
            var settings  = new Settings();
            var invoker   = new CommandInvoker("bimse", settings, new Bimse());
            var arguments = Go.Parse(new[] { switchText }, settings);

            invoker.Invoke(arguments.Switches, EnvironmentSettings.Empty);

            var bimseInstance = (Bimse)invoker.CommandInstance;

            Assert.That(bimseInstance.Switch, Is.EqualTo("value2"));
        }
Exemplo n.º 2
0
 static Arguments Parse(IEnumerable <string> args)
 {
     return(Go.Parse(args, new Settings()));
 }