public void TearDown() { contents = null; writer = null; }
public void Setup() { var s = new XmlWriterSettings (); s.ConformanceLevel = ConformanceLevel.Fragment; s.OmitXmlDeclaration = true; writer = new DelegatingXmlDictionaryWriter ( XmlWriter.Create (contents = new StringBuilder (), s)); }