protected override object[] CreateValues() { DoubleHandlerUpdateTestCase.Item[] values = new DoubleHandlerUpdateTestCase.Item[ data.Length + 1]; for (int i = 0; i < data.Length; i++) { DoubleHandlerUpdateTestCase.Item item = new DoubleHandlerUpdateTestCase.Item(); values[i] = item; item._typedPrimitive = data[i]; item._typedWrapper = data[i]; item._untyped = data[i]; } values[values.Length - 1] = new DoubleHandlerUpdateTestCase.Item(); return(values); }
// FIXME: The following fails as is because of a deficiency // in the storage format of arrays. // Arrays should also get a null Bitmap to fix. // Assert.isNull(values[values.length - 1]); protected override void AssertValues(IExtObjectContainer objectContainer, object[] values) { for (int i = 0; i < data.Length; i++) { DoubleHandlerUpdateTestCase.Item item = (DoubleHandlerUpdateTestCase.Item)values[ i]; AssertAreEqual(data[i], item._typedPrimitive); AssertAreEqual(data[i], item._typedWrapper); AssertAreEqual(data[i], item._untyped); } DoubleHandlerUpdateTestCase.Item nullItem = (DoubleHandlerUpdateTestCase.Item)values [values.Length - 1]; Assert.AreEqual(0, nullItem._typedPrimitive); Assert.IsNull(nullItem._untyped); }
protected override object[] CreateValues() { DoubleHandlerUpdateTestCase.Item[] values = new DoubleHandlerUpdateTestCase.Item[ data.Length + 1]; for (int i = 0; i < data.Length; i++) { DoubleHandlerUpdateTestCase.Item item = new DoubleHandlerUpdateTestCase.Item(); values[i] = item; item._typedPrimitive = data[i]; item._typedWrapper = data[i]; item._untyped = data[i]; } values[values.Length - 1] = new DoubleHandlerUpdateTestCase.Item(); return values; }