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")); }
static Arguments Parse(IEnumerable <string> args) { return(Go.Parse(args, new Settings())); }