public void DoNotMatchNamespacesDifferent() { XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix"); XmlSchemaFileAssociation rhs = new XmlSchemaFileAssociation("ext", "different-namespaceUri", "prefix"); Assert.IsFalse(lhs.Equals(rhs)); }
public void MatchIfFileExtensionAndNamespaceUriAndPrefixMatch() { XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix"); XmlSchemaFileAssociation rhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix"); Assert.IsTrue(lhs.Equals(rhs)); }
public void DoesNotMatchAStringObject() { XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix"); Assert.IsFalse(lhs.Equals("String")); }