Esempio n. 1
0
        public void FileExtensionConvertedFromString()
        {
            XmlSchemaFileAssociation expectedSchemaAssociation = new XmlSchemaFileAssociation("ext", String.Empty);
            XmlSchemaFileAssociation schemaAssociation         = XmlSchemaFileAssociation.ConvertFromString("ext||");

            Assert.AreEqual(expectedSchemaAssociation, schemaAssociation);
        }
Esempio n. 2
0
        public void FileExtensionAndNamespaceUriConvertedFromString()
        {
            XmlSchemaFileAssociation expectedSchemaAssociation = new XmlSchemaFileAssociation("ext", "namespace-uri");
            XmlSchemaFileAssociation schemaAssociation         = XmlSchemaFileAssociation.ConvertFromString("ext|namespace-uri|");

            Assert.AreEqual(expectedSchemaAssociation, schemaAssociation);
        }
Esempio n. 3
0
        public void EmpyStringConverted()
        {
            XmlSchemaFileAssociation expectedSchemaAssociation = new XmlSchemaFileAssociation(String.Empty, String.Empty);

            Assert.AreEqual(expectedSchemaAssociation, XmlSchemaFileAssociation.ConvertFromString(String.Empty));
        }