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