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 void ShouldPreserveExistingAtomExtension() { FileName fileName = new FileName("abc.atom"); Assert.AreEqual("abc.atom", fileName.GetValue()); }
public void ShouldAddAtomExtensionToValueWithoutExtension() { FileName fileName = new FileName("abc"); Assert.AreEqual("abc.atom", fileName.GetValue()); }