public void SaveToTest() { MemoryStream memoryStream = new MemoryStream(); _XmlConfiguration.SaveTo(memoryStream); memoryStream.Seek(0, SeekOrigin.Begin); XDocument.Load(memoryStream).Should().BeEquivalentTo(_XDocument); }