public static bool IsEqual(this ObjectWithArrays @this, ObjectWithArrays other)
 {
     return(@this != null &&
            other != null &&
            CheckEquals(@this.IntArray, other.IntArray) &&
            CheckEquals(@this.StringArray, other.StringArray) &&
            CheckEquals(@this.TreeArray, other.TreeArray) &&
            CheckEquals(@this.ByteArray, other.ByteArray) &&
            CheckEquals(@this.JaggedArray, other.JaggedArray) &&
            CheckEquals(@this.MultiDimensionalArray, other.MultiDimensionalArray));
 }
Exemple #2
0
        public static void IsEqual(this ObjectWithArrays @this, ObjectWithArrays other, bool isSamePlatform)
        {
            if (@this == null && other == null)
            {
                return;
            }

            Assert.NotNull(@this);
            Assert.NotNull(other);
            CheckEquals(@this.IntArray, other.IntArray, isSamePlatform);
            CheckEquals(@this.StringArray, other.StringArray, isSamePlatform);
            //CheckEquals(@this.TreeArray, other.TreeArray);
            CheckEquals(@this.ByteArray, other.ByteArray, isSamePlatform);
            CheckEquals(@this.JaggedArray, other.JaggedArray, isSamePlatform);
            CheckEquals(@this.MultiDimensionalArray, other.MultiDimensionalArray, isSamePlatform);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            ObjectWithArrays o = obj as ObjectWithArrays;

            if (o == null)
            {
                return(false);
            }

            return
                (EqualityHelpers.ArraysAreEqual(IntArray, o.IntArray) &&
                 EqualityHelpers.ArraysAreEqual(StringArray, o.StringArray) &&
                 EqualityHelpers.ArraysAreEqual(TreeArray, o.TreeArray) &&
                 EqualityHelpers.ArraysAreEqual(ByteArray, o.ByteArray) &&
                 EqualityHelpers.ArraysAreEqual(JaggedArray, o.JaggedArray) &&
                 EqualityHelpers.ArraysAreEqual(MultiDimensionalArray, o.MultiDimensionalArray));
        }