public void ExecuteAspect(string aspectName, object newValue, object dict) { OLVColumn column = new OLVColumn(); column.AspectName = aspectName; column.PutValue(dict, newValue); Assert.AreEqual(newValue, column.GetValue(dict)); }
public void TestSimpleMethod() { this.person1.SetRate(0.0); OLVColumn column = new OLVColumn(); column.AspectName = "SetRate"; column.PutValue(this.person1, 10.0); Assert.AreEqual(10.0, this.person1.GetRate()); }
public void TestChaining2() { this.person2.SetRate(0.0); OLVColumn column = new OLVColumn(); column.AspectName = "Parent.Parent.SetRate"; column.PutValue(this.person2, 10.0); // Person2 doubles the rate Assert.AreEqual(20.0, this.person2.GetRate()); }
public void ToggleCheckState(Object rowObject) { bool val = IsSubItemUnchecked(rowObject); Column.PutValue(rowObject, val); }