public void BinaryDataListRowEqualityComparer_Equals_StringValues_NotEqualReturnsFalse()
        {
            //------------Setup for test--------------------------
            var binaryDataListRowEqualityComparer = new BinaryDataListRowEqualityComparer(new List<int> { 0 });

            var xValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var yValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var binaryDataListRow1 = new BinaryDataListRow(1);
            var binaryDataListRow2 = new BinaryDataListRow(1);
            binaryDataListRow1.UpdateValue("r1.f1.value", 0, 0);
            binaryDataListRow2.UpdateValue("r1.f2.value", 0, 0);
            xValueRow.Row = binaryDataListRow1;
            yValueRow.Row = binaryDataListRow2;
            //------------Execute Test---------------------------
            var isEqual = binaryDataListRowEqualityComparer.Equals(xValueRow, yValueRow);
            //------------Assert Results-------------------------
            Assert.IsFalse(isEqual);
        }
        public void BinaryDataListRowEqualityComparer_Equals_BothNotFloatValuesReturnsFalse()
        {
            //------------Setup for test--------------------------
            var binaryDataListRowEqualityComparer = new BinaryDataListRowEqualityComparer(new List<int> { 0 });

            var xValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var yValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var binaryDataListRow1 = new BinaryDataListRow(1);
            var binaryDataListRow2 = new BinaryDataListRow(1);
            binaryDataListRow1.UpdateValue("100.01", 0, 0);
            binaryDataListRow2.UpdateValue("some val", 0, 0);
            xValueRow.Row = binaryDataListRow1;
            yValueRow.Row = binaryDataListRow2;
            //------------Execute Test---------------------------
            var isEqual = binaryDataListRowEqualityComparer.Equals(xValueRow, yValueRow);
            //------------Assert Results-------------------------
            Assert.IsFalse(isEqual);
        }
        public void BinaryDataListRowEqualityComparer_Equals_MultipleColumns_NotMatchColumn_EqualReturnsFalse()
        {
            //------------Setup for test--------------------------
            var binaryDataListRowEqualityComparer = new BinaryDataListRowEqualityComparer(new List<int> { 0, 1 });

            var xValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var yValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var binaryDataListRow1 = new BinaryDataListRow(2);
            var binaryDataListRow2 = new BinaryDataListRow(2);
            binaryDataListRow1.UpdateValue("r1.f1.value", 0, 0);
            binaryDataListRow1.UpdateValue("test", 1, 0);
            binaryDataListRow2.UpdateValue("r1.f1.value", 0, 0);
            binaryDataListRow2.UpdateValue("test1", 1, 0);
            xValueRow.Row = binaryDataListRow1;
            yValueRow.Row = binaryDataListRow2;
            //------------Execute Test---------------------------
            var isEqual = binaryDataListRowEqualityComparer.Equals(xValueRow, yValueRow);
            //------------Assert Results-------------------------
            Assert.IsFalse(isEqual);
        }
        public void BinaryDataListRowEqualityComparer_Equals_LongValues_EqualReturnsTrue()
        {
            //------------Setup for test--------------------------
            var binaryDataListRowEqualityComparer = new BinaryDataListRowEqualityComparer(new List<int> { 0 });

            var xValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var yValueRow = new IndexBasedBinaryDataListRow { Index = 1 };
            var binaryDataListRow1 = new BinaryDataListRow(1);
            var binaryDataListRow2 = new BinaryDataListRow(1);
            binaryDataListRow1.UpdateValue("9223372036854775707", 0, 0);
            binaryDataListRow2.UpdateValue("9223372036854775707", 0, 0);
            xValueRow.Row = binaryDataListRow1;
            yValueRow.Row = binaryDataListRow2;
            //------------Execute Test---------------------------
            var isEqual = binaryDataListRowEqualityComparer.Equals(xValueRow, yValueRow);
            //------------Assert Results-------------------------
            Assert.IsTrue(isEqual);
        }