public void DefaultNamespace() { dsPubs pubs = new dsPubs(); pubs.id = "0736"; System.Xml.Serialization.XmlSerializer ser = new System.Xml.Serialization.XmlSerializer(typeof(dsPubs), String.Empty); System.IO.StringWriter sw = new System.IO.StringWriter(); ser.Serialize( sw, pubs ); string xml = sw.ToString(); Assert.IsNotNull(xml); }