public Test_InstallValidator()
		{
			string hce_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo CE", "EXE Path", "") as string;
			if (hce_install_directory == null || hce_install_directory.Length == 0)
				throw new Exception("HCE Install path registry entry is missing");

			ValidatorDefinition hce_validator = new ValidatorDefinition("Halo1_CE", hce_install_directory);

			string hek_install_directory = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Microsoft Games\\Halo HEK", "EXE Path", "") as string;
			if (hek_install_directory == null || hek_install_directory.Length == 0)
				throw new Exception("HEK Install path registry entry is missing");

			ValidatorDefinition hek_validator = new ValidatorDefinition("Halo1_HEK", hek_install_directory);

			ValidatorDefinitions.Add(hce_validator);
			ValidatorDefinitions.Add(hek_validator);
		}
 public ExecutableValidator(ValidatorDefinition definition, string scriptPath)
 {
     this.scriptPath = scriptPath;
     Definition      = definition;
 }
 public TextRulesValidator(ValidatorDefinition definition, TextRuleEvaluator textRuleEvaluator)
 {
     Definition             = definition;
     this.textRuleEvaluator = textRuleEvaluator;
 }
Exemple #4
0
 public PythonScriptValidator(ValidatorDefinition definition, string scriptPath)
 {
     this.scriptPath = scriptPath;
     Definition      = definition;
 }
Exemple #5
0
 public GetValidatorResourceDescription(ValidatorDefinition validatorDefinition)
 {
     ValidatorDefinition = validatorDefinition;
 }