public void ShouldCreateXmlWriter()
 {
     FileName fileName = new FileName("temp");
     using (XmlWriter writer = fileName.CreateXmlWriter(@"..\..\Data\", new XmlWriterSettings{CloseOutput = true}))
     {
         Assert.IsNotNull(writer);
     }
     File.Delete(Path.Combine(@"..\..\Data\", fileName.GetValue()));
 }
 public XmlWriter GetXmlWriter(FileName fileName)
 {
     return fileName.CreateXmlWriter(directory, WriterSettings);
 }