Example #1
0
 // FIXME: Arrays should also get a null Bitmap to fix.
 // Assert.isNull(wrapperArray[wrapperArray.length - 1]);
 protected override void AssertValues(IExtObjectContainer objectContainer, object[]
                                      values)
 {
     for (int i = 0; i < data.Length; i++)
     {
         BooleanHandlerUpdateTestCase.Item item = (BooleanHandlerUpdateTestCase.Item)values
                                                  [i];
         AssertAreEqual(data[i], item._typedPrimitive);
         AssertAreEqual(data[i], item._typedWrapper);
         AssertAreEqual(data[i], item._untyped);
     }
     BooleanHandlerUpdateTestCase.Item nullItem = (BooleanHandlerUpdateTestCase.Item)values
                                                  [values.Length - 1];
     AssertAreEqual(false, nullItem._typedPrimitive);
     Assert.IsNull(nullItem._untyped);
 }
		protected override object[] CreateValues()
		{
			BooleanHandlerUpdateTestCase.Item[] values = new BooleanHandlerUpdateTestCase.Item
				[data.Length + 1];
			for (int i = 0; i < data.Length; i++)
			{
				BooleanHandlerUpdateTestCase.Item item = new BooleanHandlerUpdateTestCase.Item();
				item._typedPrimitive = data[i];
				item._typedWrapper = data[i];
				item._untyped = data[i];
				values[i] = item;
			}
			values[values.Length - 1] = new BooleanHandlerUpdateTestCase.Item();
			return values;
		}