public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj is Difference) { Difference that = ( Difference )obj; return(ActualFirst == that.ActualFirst && ExpectedFirst == that.ExpectedFirst && ActualSecond == that.ActualSecond && ExpectedSecond == that.ExpectedSecond && KeyConflict.Equals(that.KeyConflict)); } return(false); }