Esempio n. 1
0
        public void GetHashCode_UnitsAreEqual_HashCodesAreEqual(
            int rowsInserted,
            int rowsUpdated)
        {
            var uut   = new MergeResult(rowsInserted, rowsUpdated);
            var other = new MergeResult(rowsInserted, rowsUpdated);

            uut.GetHashCode().ShouldBe(other.GetHashCode());
        }
Esempio n. 2
0
        public void GetHashCode_UnitsAreNotEqual_HashCodesAreNotEqual(
            int xRowsInserted,
            int xRowsUpdated,
            int yRowsInserted,
            int yRowsUpdated)
        {
            var uut   = new MergeResult(xRowsInserted, xRowsUpdated);
            var other = new MergeResult(yRowsInserted, yRowsUpdated);

            uut.GetHashCode().ShouldNotBe(other.GetHashCode());
        }