protected override object CreateArrays()
 {
     ObjectArrayUpdateTestCase.ItemArrays item = new ObjectArrayUpdateTestCase.ItemArrays
                                                     ();
     item._typedChildren = CastToChildItemArray(childData);
     item._typedChildrenInParentArray           = childData;
     item._untypedChildren                      = CastToChildItemArray(childData);
     item._untypedChildrenInParentArray         = childData;
     item._untypedChildrenInObject              = CastToChildItemArray(childData);
     item._untypedChildrenInParentArrayInObject = childData;
     item._typedMixed           = mixedData;
     item._untypedMixed         = mixedData;
     item._untypedMixedInObject = mixedData;
     return(item);
 }
 protected override void AssertArrays(IExtObjectContainer objectContainer, object
                                      obj)
 {
     ObjectArrayUpdateTestCase.ItemArrays item = (ObjectArrayUpdateTestCase.ItemArrays
                                                  )obj;
     ArrayAssert.AreEqual(CastToChildItemArray(childData), item._typedChildren);
     ArrayAssert.AreEqual(childData, item._typedChildrenInParentArray);
     ArrayAssert.AreEqual(CastToChildItemArray(childData), item._untypedChildren);
     ArrayAssert.AreEqual(childData, item._untypedChildrenInParentArray);
     ArrayAssert.AreEqual(CastToChildItemArray(childData), (object[])item._untypedChildrenInObject
                          );
     ArrayAssert.AreEqual(childData, (object[])item._untypedChildrenInParentArrayInObject
                          );
     ArrayAssert.AreEqual(mixedData, item._typedMixed);
     ArrayAssert.AreEqual(mixedData, item._untypedMixed);
     ArrayAssert.AreEqual(mixedData, (object[])item._untypedMixedInObject);
 }
Esempio n. 3
0
		protected override object CreateArrays()
		{
			ObjectArrayUpdateTestCase.ItemArrays item = new ObjectArrayUpdateTestCase.ItemArrays
				();
			item._typedChildren = CastToChildItemArray(childData);
			item._typedChildrenInParentArray = childData;
			item._untypedChildren = CastToChildItemArray(childData);
			item._untypedChildrenInParentArray = childData;
			item._untypedChildrenInObject = CastToChildItemArray(childData);
			item._untypedChildrenInParentArrayInObject = childData;
			item._typedMixed = mixedData;
			item._untypedMixed = mixedData;
			item._untypedMixedInObject = mixedData;
			return item;
		}