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