public override bool Equals(object obj) { ComplexEntity testObject = obj as ComplexEntity; return(testObject != null && EqualsInternal(testObject)); }
private ComplexEntity[] BuildComplexEntityArray(int entities) { ComplexEntity[] array = new ComplexEntity[entities]; for (int i = 0; i < entities; i++) { array[i] = new ComplexEntity { TestPrimitiveEntity = PrimitiveEntityArray[i] } } ; return(array); }
private bool EqualsInternal(ComplexEntity testObject) { if (TestInt != testObject.TestInt) { return(false); } if (!TestPrimitiveEntity.Equals(testObject.TestPrimitiveEntity)) { return(false); } return(true); }