public void TestDynamicProperySetAdnGets() { m_Config.StopLoading(); var prop = new DynamicBooleanProperty("Archaius.Net.Test.MyBool", false); Assert.IsFalse(prop.Value); Assert.AreEqual(0, prop.Property.PropertyChangedHandlers.Length); for (var i = 0; i < 10; i++) { m_Config.SetProperty(prop.Name, "true"); Assert.IsTrue(prop.Value); Assert.AreEqual("true", m_Config.GetString(prop.Name)); m_Config.SetProperty(prop.Name, "false"); Assert.IsFalse(prop.Value); Assert.AreEqual("false", m_Config.GetString(prop.Name)); } for (int i = 0; i < 100; i++) { m_Config.SetProperty(prop.Name, "true"); Assert.IsTrue(prop.Value); Assert.AreEqual("true", m_Config.GetString(prop.Name)); m_Config.ClearProperty(prop.Name); Assert.IsFalse(prop.Value); Assert.IsNull(m_Config.GetString(prop.Name)); } }