public void DataSetComparison_UnequalDataTables_DuplicateRow_ComparisonReturnsResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, dt5, true);

            //0 because CompareDataTables with no ordering is a set-based comparison.
            Assert.AreEqual(0, dt.Rows.Count);
        }
        public void DataSetComparison_EqualDataTables_WrongOrder_OrderSensitive_ComparisonReturnsResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, dt4, true, true);

            //4 because two rows are different on each side.
            Assert.AreEqual(4, dt.Rows.Count);
        }
 public void DataSetComparison_DifferentDataTables_ComparisonReturnsResults()
 {
     //We expect failure here because the result sets to compare differ.
     try
     {
         var dt = DataSetComparison.CompareDataTables(dt1, different, true);
         Assert.Fail("No exception hit.");
     }
     catch (Exception ex)
     {
         Assert.IsTrue(ex.Message.Contains("Input string was not in a correct format"));
     }
 }
        public void DataSetComparison_ExtraLongTables_ComparisonReturnsNoResults()
        {
            var dt = DataSetComparison.CompareDataTables(extralong1, extralong2, true);

            Assert.AreEqual(0, dt.Rows.Count);
        }
        public void DataSetComparison_SecondDataTableEmpty_ComparisonReturnsResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, empty, true);

            Assert.AreEqual(2, dt.Rows.Count);
        }
        public void DataSetComparison_UnequalDataTables_ComparisonReturnsResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, dt3, true);

            Assert.AreEqual(4, dt.Rows.Count);
        }
        public void DataSetComparison_UnequalDataTables_DuplicateRow_OrderSensitive_ComparisonReturnsResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, dt5, true, true);

            Assert.AreEqual(1, dt.Rows.Count);
        }
        public void DataSetComparison_EqualDataTables_WrongOrder_ComparisonReturnsNoResults()
        {
            var dt = DataSetComparison.CompareDataTables(dt1, dt4, true);

            Assert.AreEqual(0, dt.Rows.Count);
        }