public void TestSerializedPropertiesParsing() { PropertiesReader reader = new PropertiesReader(serializedSource); dynamic properties = reader.GetProperties(); Assert.IsNotNull(properties); }
public void TestPropertiesParsing() { PropertiesReader reader = new PropertiesReader(source); dynamic properties = reader.GetProperties(); Assert.IsNotNull(properties); Assert.AreEqual(2, properties.Keys.Count); Assert.IsNotNull(properties.AppConfig); Assert.AreEqual(2, properties.AppConfig.Keys.Count); Assert.IsNotNull(properties.section2); Assert.AreEqual(2, properties.section2.Keys.Count); Assert.AreEqual(string.Empty, properties.section2.key3); Assert.IsInstanceOf <List <string> >(properties.section2.key4); Assert.AreEqual(3, properties.section2.key4.Count); }