public void TestDictionarySerialization() { var model = new Model(); model.Init(); var serializer = new ConfigurationContainer().Create(); var content = Encoding.UTF8.GetBytes(serializer.Serialize(model)); var stream = new MemoryStream(content); using (var reader = XmlReader.Create(stream)) { serializer.Deserialize(reader).To <Model>().Map.Should().Equal(model.Map); } }