예제 #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));
        }
예제 #2
0
        public void MatchIfFileExtensionAndNamespaceUriAndPrefixMatch()
        {
            XmlSchemaFileAssociation lhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");
            XmlSchemaFileAssociation rhs = new XmlSchemaFileAssociation("ext", "namespaceUri", "prefix");

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

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