public void Test_ValidateSchemasFromDirectory_WithValidateAsSeparateFiles() { bool res = ForgeSchemaValidator.ValidateSchemaFromDirectory(directoryPathToMultipleForgeTree, rulesForForgeTree, false, out IList <ValidationError> errorList); Assert.IsTrue(res); Assert.AreEqual(0, errorList.Count); }
public void Test_ValidateSchemaFromDirectory_WithValidateAsDictionary_DirectoryContainsForgeTree_Fail() { Assert.ThrowsException <NullReferenceException>( () => ForgeSchemaValidator.ValidateSchemaFromDirectory( directoryPathToMultipleForgeTree, linkedRulesForForgeTreeDictionary, true, out IList <ValidationError> errorList)); }
public void Test_ValidateSchema_FromInvalidDirectoryPath_Fail() { Assert.ThrowsException <IOException>( () => ForgeSchemaValidator.ValidateSchemaFromDirectory( invalidSchemaDirectoryPath, linkedRulesForForgeTreeDictionary, true, out IList <ValidationError> errorList)); }