public void KnowsWhatPropertiesAreSetUsingDeserialization()
{
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.IsFalse(configuration.IsConfigurationValueSet("C"));
}
}
}