Exemplo n.º 1
0
        public void DoNotMatchNamespacesDifferent()
        {
            XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");
            XmlSchemaFileAssociation rhs = new XmlSchemaFileAssociation("ext", "different-namespaceUri", "prefix");

            Assert.IsFalse(lhs.Equals(rhs));
        }
Exemplo n.º 2
0
        public void MatchIfFileExtensionAndNamespaceUriAndPrefixMatch()
        {
            XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");
            XmlSchemaFileAssociation rhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");

            Assert.IsTrue(lhs.Equals(rhs));
        }
Exemplo n.º 3
0
        public void DoesNotMatchAStringObject()
        {
            XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");

            Assert.IsFalse(lhs.Equals("String"));
        }