Esempio n. 1
0
 public static bool IsEqual(this ObjectWithIntStringUShortUIntULongAndCustomObjectFields @this, ObjectWithIntStringUShortUIntULongAndCustomObjectFields other)
 {
     return(@this != null &&
            other != null &&
            @this.Member1 == other.Member1 &&
            @this.Member2 == other.Member2 &&
            @this._member3 == other._member3 &&
            IsEqual(@this.Member4, other.Member4) &&
            IsEqual(@this.Member4shared, other.Member4shared) &&
            IsEqual(@this.Member5, other.Member5) &&
            @this.Member6 == other.Member6 &&
            @this.str1 == other.str1 &&
            @this.str2 == other.str2 &&
            @this.str3 == other.str3 &&
            @this.str4 == other.str4 &&
            @this.u16 == other.u16 &&
            @this.u32 == other.u32 &&
            @this.u64 == other.u64);
 }
Esempio n. 2
0
        public static void IsEqual(this ObjectWithIntStringUShortUIntULongAndCustomObjectFields @this, ObjectWithIntStringUShortUIntULongAndCustomObjectFields other, bool isSamePlatform)
        {
            if (@this == null && other == null)
            {
                return;
            }

            Assert.NotNull(@this);
            Assert.NotNull(other);
            Assert.Equal(@this.Member1, other.Member1);
            Assert.Equal(@this.Member2, other.Member2);
            Assert.Equal(@this._member3, other._member3);
            IsEqual(@this.Member4, other.Member4, isSamePlatform);
            IsEqual(@this.Member4shared, other.Member4shared, isSamePlatform);
            IsEqual(@this.Member5, other.Member5, isSamePlatform);
            Assert.Equal(@this.Member6, other.Member6);
            Assert.Equal(@this.str1, other.str1);
            Assert.Equal(@this.str2, other.str2);
            Assert.Equal(@this.str3, other.str3);
            Assert.Equal(@this.str4, other.str4);
            Assert.Equal(@this.u16, other.u16);
            Assert.Equal(@this.u32, other.u32);
            Assert.Equal(@this.u64, other.u64);
        }