Exemplo n.º 1
0
        public void WriteAddressHeaderTest()
        {
            AddressHeader h = AddressHeader.CreateAddressHeader(1);

            StringWriter      sw = new StringWriter();
            XmlWriterSettings s  = new XmlWriterSettings();

            s.OmitXmlDeclaration = true;
            XmlWriter w = XmlWriter.Create(sw, s);

            h.WriteAddressHeader(w);

            w.Close();

            Assert.AreEqual(
                @"<int xmlns=""http://schemas.microsoft.com/2003/10/Serialization/"">1</int>",
                sw.ToString());
        }