Exemple #1
0
        protected override void AssertItemValue(object obj)
        {
            IntItem item = (IntItem)obj;

            Assert.AreEqual(42, item.Value());
            Assert.AreEqual(1, item.IntegerValue());
            Assert.AreEqual(2, item.Object());
        }
Exemple #2
0
		protected override object CreateItem()
		{
			IntItem item = new IntItem();
			item.value = 42;
			item.i = 1;
			item.obj = 2;
			return item;
		}
Exemple #3
0
        protected override object CreateItem()
        {
            IntItem item = new IntItem();

            item.value = 42;
            item.i     = 1;
            item.obj   = 2;
            return(item);
        }