Esempio 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));
        }
Esempio 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));
        }
Esempio n. 3
0
        public void DoesNotMatchAStringObject()
        {
            XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");

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