public void SchemaWithNoNamespaceRecordedAsError() { string message = "Ignoring schema with no namespace '" + testSchemaFileName + "'."; RegisteredXmlSchemaError error = new RegisteredXmlSchemaError(message); RegisteredXmlSchemaError[] expectedErrors = new RegisteredXmlSchemaError[] { error }; Assert.AreEqual(expectedErrors, registeredXmlSchemas.GetSchemaErrors()); }
public void OneErrorReportedWhenReadingSchemas() { string message = @"Unable to read schema 'd:\projects\schemas\addin.xsd'."; RegisteredXmlSchemaError error = new RegisteredXmlSchemaError(message, exceptionThrownWhenReadingSchema); RegisteredXmlSchemaError[] expectedErrors = new RegisteredXmlSchemaError[] { error }; Assert.AreEqual(expectedErrors, registeredXmlSchemas.GetSchemaErrors()); }
public void NoSchemaErrorsRecordedForDuplicateSchemaNamespace() { Assert.AreEqual(0, registeredXmlSchemas.GetSchemaErrors().Length); }