public void TestXmlFragment() { string filename = "test"; for (int i = 0; i < files.Length; i++) { StreamReader reader = new StreamReader(files[i]); string content = reader.ReadToEnd(); entry = AtomEntry.LoadXml(content); Assert.IsNotNull(entry); entry.Save(filename); File.Delete(filename); } }