public void TestBadArgs() { var argsList = new List<string[]>(); var configurationFilesSource = new TestConfigurationSections(); argsList.Add(new string[] {}); argsList.Add(new string[] {"fdsafdsa"}); argsList.Add(new string[] { "-c:" + SaveToTempFile(TestConfigurationSections.GetNormalConfig()), "fdsafdsa" }); TestArgsVsReturnCode(argsList, 1); }
public void TestGoodReturnCodes() { List <string> goodConfigFiles = new List <string>(); goodConfigFiles.Add(SaveToTempFile(TestConfigurationSections.GetNoBrowsersConfig())); goodConfigFiles.Add(SaveToTempFile(TestConfigurationSections.GetNormalConfig())); goodConfigFiles.Add(SaveToTempFile(TestConfigurationSections.GetNoLinkCheckerAttrConfig())); TestFilesVsReturnCode(goodConfigFiles, 0); }
public void TestBadArgs() { var argsList = new List <string[]>(); var configurationFilesSource = new TestConfigurationSections(); argsList.Add(new string[] {}); argsList.Add(new string[] { "fdsafdsa" }); argsList.Add(new string[] { "-c:" + SaveToTempFile(TestConfigurationSections.GetNormalConfig()), "fdsafdsa" }); TestArgsVsReturnCode(argsList, 1); }
public void TestBadReturnCodes() { List <string> badConfigFiles = new List <string>(); badConfigFiles.Add(SaveToTempFile(TestConfigurationSections.GetNoConfigSections())); badConfigFiles.Add(SaveToTempFile(TestConfigurationSections.GetNoSeedsConfig())); badConfigFiles.Add("DOESNOTEXIST"); badConfigFiles.Add("/////////////"); TestFilesVsReturnCode(badConfigFiles, 1); }