public void WriteAllItemsDataTest() { _source.Write(XmlDataSource.XmlEntities); _stream.Position = 0; TextReader reader = new StreamReader(_stream); var actual = reader.ReadToEnd(); Assert.AreEqual(XmlDataSource.RawXmlData, actual); }