public void Equals_NonGeneric_ObjIsNull_ReturnsFalse( int rowsInserted, int rowsUpdated) { var uut = new MergeResult(rowsInserted, rowsUpdated); uut.Equals(null as object).ShouldBeFalse(); }
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(); }
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(); }
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(); }
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(); }