Example #1
0
        public void Equals_NonGeneric_ObjIsNull_ReturnsFalse(
            int rowsInserted,
            int rowsUpdated)
        {
            var uut = new MergeResult(rowsInserted, rowsUpdated);

            uut.Equals(null as object).ShouldBeFalse();
        }
Example #2
0
        public void Equals_Generic_OtherIsEqual_ReturnsTrue(
            int rowsInserted,
            int rowsUpdated)
        {
            var uut   = new MergeResult(rowsInserted, rowsUpdated);
            var other = new MergeResult(rowsInserted, rowsUpdated);

            uut.Equals(other).ShouldBeTrue();
        }
Example #3
0
        public void Equals_NonGeneric_ObjIsEqual_ReturnsTrue(
            int rowsInserted,
            int rowsUpdated)
        {
            var uut = new MergeResult(rowsInserted, rowsUpdated);
            var obj = new MergeResult(rowsInserted, rowsUpdated);

            uut.Equals(obj).ShouldBeTrue();
        }
Example #4
0
        public void Equals_Generic_OtherIsNotEqual_ReturnsFalse(
            int xRowsInserted,
            int xRowsUpdated,
            int yRowsInserted,
            int yRowsUpdated)
        {
            var uut   = new MergeResult(xRowsInserted, xRowsUpdated);
            var other = new MergeResult(yRowsInserted, yRowsUpdated);

            uut.Equals(other).ShouldBeFalse();
        }
Example #5
0
        public void Equals_NonGeneric_ObjIsNotEqual_ReturnsFalse(
            int xRowsInserted,
            int xRowsUpdated,
            int yRowsInserted,
            int yRowsUpdated)
        {
            var uut = new MergeResult(xRowsInserted, xRowsUpdated);
            var obj = new MergeResult(yRowsInserted, yRowsUpdated)
                      as object;

            uut.Equals(obj).ShouldBeFalse();
        }