public void ToXml()
		{
			XmlSchemaAssociation schema = new XmlSchemaAssociation(".xml", "http://mono-project.com");
			schema.WriteTo(writer);
			
			string expectedXml = "<SchemaAssociation extension=\".xml\" namespace=\"http://mono-project.com\" prefix=\"\" />";
			Assert.AreEqual(expectedXml, xml.ToString());
		}
        public void ToXml()
        {
            XmlSchemaAssociation schema = new XmlSchemaAssociation(".xml", "http://mono-project.com");

            schema.WriteTo(writer);

            string expectedXml = "<SchemaAssociation extension=\".xml\" namespace=\"http://mono-project.com\" prefix=\"\" />";

            Assert.AreEqual(expectedXml, xml.ToString());
        }
		public void FromXml()
		{
			XmlSchemaAssociation expectedSchema = new XmlSchemaAssociation(".xml", "http://mono-project.com");
			expectedSchema.WriteTo(writer);

			string propertiesXml = "<SerializedNode>" + xml.ToString() + "</SerializedNode>";
			XmlTextReader reader = new XmlTextReader(new StringReader(propertiesXml));
			XmlSchemaAssociation schema = new MonoDevelop.XmlEditor.XmlSchemaAssociation(String.Empty);
			schema = (XmlSchemaAssociation)schema.ReadFrom(reader);
			
			Assert.AreEqual(expectedSchema.Extension, schema.Extension);
			Assert.AreEqual(expectedSchema.NamespacePrefix, schema.NamespacePrefix);
			Assert.AreEqual(expectedSchema.NamespaceUri, schema.NamespaceUri);
		}
        public void FromXml()
        {
            XmlSchemaAssociation expectedSchema = new XmlSchemaAssociation(".xml", "http://mono-project.com");

            expectedSchema.WriteTo(writer);

            string               propertiesXml = "<SerializedNode>" + xml.ToString() + "</SerializedNode>";
            XmlTextReader        reader        = new XmlTextReader(new StringReader(propertiesXml));
            XmlSchemaAssociation schema        = new MonoDevelop.XmlEditor.XmlSchemaAssociation(String.Empty);

            schema = (XmlSchemaAssociation)schema.ReadFrom(reader);

            Assert.AreEqual(expectedSchema.Extension, schema.Extension);
            Assert.AreEqual(expectedSchema.NamespacePrefix, schema.NamespacePrefix);
            Assert.AreEqual(expectedSchema.NamespaceUri, schema.NamespaceUri);
        }