Esempio n. 1
0
        public void t1_GetSpecificInfoByType()
        {
            var ex = new ExampleClass();

            SharingFactory sf = new SharingFactory();

            Assert.AreEqual("UserId", sf.GetPropertyNameByType(ex, "Identifier"));
        }
Esempio n. 2
0
        public void t0_getPropertyList()
        {
            var ex = new ExampleClass();

            SharingFactory sf = new SharingFactory();

            Assert.AreEqual("UserName", sf.GetProperties(ex)[1]);
        }
Esempio n. 3
0
        public void t2_GetValueByType()
        {
            var ex = new ExampleClass()
            {
                UserId   = 5,
                UserName = "******"
            };

            SharingFactory sf = new SharingFactory();

            Assert.AreEqual(5, sf.GetValueByType(ex, "Identifier"));
        }