Ejemplo n.º 1
0
        public void SetValues() {
            PropertyCollection properties = new PropertyCollection();
            properties.Add("DoubleProperty", "9999.5");
            properties.Add("IntProperty", "123456");
            properties.Add("StringProperty", "AAAA");

            PropertyUtil.SetValues(testObject, properties);
            Assert.AreEqual(9999.5, testObject.DoubleProperty);
            Assert.AreEqual(123456, testObject.IntProperty);
            Assert.AreEqual("AAAA", testObject.StringProperty);
        }