Beispiel #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++)
     {
         ShortHandlerUpdateTestCase.Item item = (ShortHandlerUpdateTestCase.Item)values[i];
         AssertAreEqual(data[i], item._typedPrimitive);
         AssertAreEqual(data[i], item._typedWrapper);
         AssertAreEqual(data[i], item._untyped);
     }
     ShortHandlerUpdateTestCase.Item nullItem = (ShortHandlerUpdateTestCase.Item)values
                                                [values.Length - 1];
     AssertAreEqual((short)0, nullItem._typedPrimitive);
     Assert.IsNull(nullItem._untyped);
 }
Beispiel #2
0
 protected override object[] CreateValues()
 {
     ShortHandlerUpdateTestCase.Item[] values = new ShortHandlerUpdateTestCase.Item[data
                                                                                    .Length + 1];
     for (int i = 0; i < data.Length; i++)
     {
         ShortHandlerUpdateTestCase.Item item = new ShortHandlerUpdateTestCase.Item();
         item._typedPrimitive = data[i];
         item._typedWrapper   = data[i];
         item._untyped        = data[i];
         values[i]            = item;
     }
     values[values.Length - 1] = new ShortHandlerUpdateTestCase.Item();
     return(values);
 }
		protected override object[] CreateValues()
		{
			ShortHandlerUpdateTestCase.Item[] values = new ShortHandlerUpdateTestCase.Item[data
				.Length + 1];
			for (int i = 0; i < data.Length; i++)
			{
				ShortHandlerUpdateTestCase.Item item = new ShortHandlerUpdateTestCase.Item();
				item._typedPrimitive = data[i];
				item._typedWrapper = data[i];
				item._untyped = data[i];
				values[i] = item;
			}
			values[values.Length - 1] = new ShortHandlerUpdateTestCase.Item();
			return values;
		}