public void SetPropertyValueNestedNull() { Tester tester = new Tester(); LateBinder.SetProperty(tester, "Order.OrderAddress.City", "New Description"); Assert.AreEqual("New Description", tester.Order.OrderAddress.City); }
public void SetPropertyValueBoxed() { Tester tester = new Tester(); LateBinder.SetProperty(tester, "Id", 999); Assert.AreEqual(999, tester.Id); }
public void SetPropertyValue() { Tester tester = new Tester(); LateBinder.SetProperty(tester, "Name", "New Name"); Assert.AreEqual("New Name", tester.Name); }
public void SetPropertyValueNested() { Tester tester = new Tester(); tester.Order = new Order(); LateBinder.SetProperty(tester, "Order.Description", "New Description"); Assert.AreEqual("New Description", tester.Order.Description); }
public void SetPropertyValueNestedObject() { Tester tester = new Tester(); tester.Order = new Order(); LateBinder.SetProperty(tester, "Order.OrderAddress", new OrderAddress { Zip = "55346" }); Assert.AreEqual("55346", tester.Order.OrderAddress.Zip); }