コード例 #1
0
        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));
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }
コード例 #4
0
        public void ToggleCheckState(Object rowObject)
        {
            bool val = IsSubItemUnchecked(rowObject);

            Column.PutValue(rowObject, val);
        }