public void TestXmlCycle3() { var serializer = serializerFactory.GetSerializer().Create(); var xmlStr = serializer.Serialize( new XmlWriterSettings(), new TestRoot { CartTitle = ExpectedTitleStr } ); var restoredRoot = serializer.Deserialize <TestRoot>(xmlStr); xmlStr.Should().Contain($"CartTitle=\"{ExpectedTitleStr}\""); restoredRoot.CartTitle.Should().Be(ExpectedTitleStr); }
private IConfigurationContainer GetSerializerConfig() => xmlSerializerFactory.GetSerializer();