Beispiel #1
0
        public void MPT_DynamicProperties_GetOrDefault()
        {
            var user  = new TestUser();
            var value = user.GetDynamicPropertyOrDefault("DN", "HAHA");

            Assert.AreEqual("HAHA", value);
            user.SetDynamicProperty("DN", "Value2");
            value = user.GetDynamicPropertyOrDefault("DN", "HAHA");
            Assert.AreEqual("Value2", value);
        }