public void Equals_CompareTwoRefsToSameInstance_ReturnsTrue() { var item = new ResultItem(-1, "test message"); var item2 = item; item.Equals(item2).Should().BeTrue(); }
public void Equals_CompareTwoInstanceDifferingResultCodes_ReturnsFalse() { var item = new ResultItem(1, "test message"); var item2 = new ResultItem(-1, "test message"); item.Equals(item2).Should().BeFalse(); }
public void Equals_CompareTwoInstanceSameContents_ReturnsTrue() { var item = new ResultItem(-1, "test message"); var item2 = new ResultItem(-1, "test message"); item.Equals(item2).Should().BeTrue(); }
public void Equals_CompareInstanceToNull_ReturnsFalse() { var item = new ResultItem(-1, "test message1"); item.Equals(null).Should().BeFalse(); }