public void Test_ValidateSchemaAsForgeTree_WithRulesAsJSchema() { bool res = ForgeSchemaValidator.ValidateSchemaAsForgeTree(forgeTree, jSchemaRulesForForgeTree, out IList <ValidationError> errorList); Assert.IsTrue(res); Assert.AreEqual(0, errorList.Count); }
public void Test_ValidateSchemaAsForgeTree_WithEmptyStringRules_Fail() { Assert.ThrowsException <ArgumentException>(() => ForgeSchemaValidator.ValidateSchemaAsForgeTree(forgeTree, "", out IList <ValidationError> errorList)); }