public void RegistersPropertiesFromSerialization()
{
using (var memoryStream = new MemoryStream())
{
using (var streamWriter = new StreamWriter(memoryStream))
{
streamWriter.Write(ExpectedXml);
streamWriter.Flush();
memoryStream.Position = 0L;
var configuration = ModelBase.Load<DynamicConfiguration>(memoryStream, SerializationMode.Xml, null);
Assert.IsTrue(configuration.IsConfigurationValueSet("KeyX"));
Assert.IsTrue(configuration.IsConfigurationValueSet("KeyY"));
Assert.AreEqual("Value X", configuration.GetConfigurationValue("KeyX"));
Assert.AreEqual("Value Y", configuration.GetConfigurationValue("KeyY"));
}
}
}