public bool Equals(MergeableClassForDimTests obj, int staticValue) { // Es muss mit einem Extra wert getestet werden, ob die statischen Werte verändert wurden if ( field1 == obj.field1 && field3 == staticValue && field7 == staticValue && field9 == obj.field9 && field11 == staticValue && Property1 == obj.Property1 && Property4 == obj.Property4 && Property7 == obj.Property7 && Property8 == obj.Property8 && Property10 == obj.Property10 && Property13 == obj.Property13 && Property14 == obj.Property14 ) { return(true); } else { return(false); } }
/// <summary> /// Erstellt 3 neue Objekte mit den selben werten /// </summary> /// <param name="value"></param> public void SetPrivateRecursiveTestObject(int value) { Type t = typeof(MergeableClassForDimTests); PrivateRecursiveProperty = (MergeableClassForDimTests)Activator.CreateInstance(t, value); InternalRecursiveProperty = (MergeableClassForDimTests)Activator.CreateInstance(t, value); PublicRecursiveProperty = (MergeableClassForDimTests)Activator.CreateInstance(t, value); }
public bool Equals(MergeableClassForDimTests obj) { if ( field1 == obj.field1 && field5 == obj.field5 && field9 == obj.field9 && Property1 == obj.Property1 && Property4 == obj.Property4 && Property7 == obj.Property7 && Property8 == obj.Property8 && Property10 == obj.Property10 && Property13 == obj.Property13 && Property14 == obj.Property14 ) { return(true); } else { return(false); } }