protected override void AssertArrays(IExtObjectContainer objectContainer, object obj) { CharHandlerUpdateTestCase.ItemArrays itemArrays = (CharHandlerUpdateTestCase.ItemArrays )obj; AssertPrimitiveArray(itemArrays._typedPrimitiveArray); AssertPrimitiveArray(CastToCharArray(itemArrays._primitiveArrayInObject)); AssertWrapperArray(itemArrays._typedWrapperArray); AssertWrapperArray((char[])itemArrays._wrapperArrayInObject); }
protected override object CreateArrays() { CharHandlerUpdateTestCase.ItemArrays itemArrays = new CharHandlerUpdateTestCase.ItemArrays (); itemArrays._typedPrimitiveArray = new char[data.Length]; System.Array.Copy(data, 0, itemArrays._typedPrimitiveArray, 0, data.Length); char[] dataWrapper = new char[data.Length]; for (int i = 0; i < data.Length; i++) { dataWrapper[i] = data[i]; } itemArrays._typedWrapperArray = new char[data.Length + 1]; System.Array.Copy(dataWrapper, 0, itemArrays._typedWrapperArray, 0, dataWrapper.Length ); char[] primitiveArray = new char[data.Length]; System.Array.Copy(data, 0, primitiveArray, 0, data.Length); itemArrays._primitiveArrayInObject = primitiveArray; char[] wrapperArray = new char[data.Length + 1]; System.Array.Copy(dataWrapper, 0, wrapperArray, 0, dataWrapper.Length); itemArrays._wrapperArrayInObject = wrapperArray; return itemArrays; }