示例#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"));
        }