public void TestSetPropertyValueWithCastRequired() { IPropertyDictionary dict = new PropertyDictionary(new ClassWithProperties()); Assert.IsTrue(dict.TrySetValue("Option", "Item3")); Assert.AreEqual(TestEnum.Item3, dict["Option"]); }