public void GetPropValueExpTest() { var temp = new Poco() { PocoValue = "Hello World" }; var result = temp.GetPropValueExp <Poco, string>("PocoValue"); Assert.AreEqual(result, "Hello World"); }
public void SetPropValueExpTest() { var temp = new Poco() { PocoValue = "Hello World" }; var result = temp.SetPropValueExp("PocoValue", "Hello CSharp."); Assert.IsTrue(result); Assert.AreEqual(temp.PocoValue, "Hello CSharp."); }