public void CommanLineFindsAndSetsValidateOptionIgnoringCase() { string[] args = { "-random", "-vAlIdate" }; var commandLine = new CommandLine(); commandLine.Parse(args); Assert.IsTrue(commandLine.Validate); }
public void CommandLineFindsAndSetsCreateOutputFileOptionIgnoringCase() { string[] args = { "-random", "-CrEatEOuTputFile" }; var commandLine = new CommandLine(); commandLine.Parse(args); Assert.IsTrue(commandLine.CreateOutputFile); }
public void CommandLineFindsAndSetsDownloadOptionIgnoringCase() { string[] args = { "-random", "-DoWnLoad" }; var commandLine = new CommandLine(); commandLine.Parse(args); Assert.IsTrue(commandLine.Download); }
public Controller(CommandLine commandLine, Settings settings) { this.commandLine = commandLine; this.settings = settings; }