public void t1_GetSpecificInfoByType() { var ex = new ExampleClass(); SharingFactory sf = new SharingFactory(); Assert.AreEqual("UserId", sf.GetPropertyNameByType(ex, "Identifier")); }
public void t0_getPropertyList() { var ex = new ExampleClass(); SharingFactory sf = new SharingFactory(); Assert.AreEqual("UserName", sf.GetProperties(ex)[1]); }
public void t2_GetValueByType() { var ex = new ExampleClass() { UserId = 5, UserName = "******" }; SharingFactory sf = new SharingFactory(); Assert.AreEqual(5, sf.GetValueByType(ex, "Identifier")); }