public void DoisErrorsResultGenericsDiferentesDevemRetornarEqualIgualAFalse() { ErrorResult<string> resultDest = new ErrorResult<string>("key", "message"); ErrorResult<int> resultSource = new ErrorResult<int>(0, "other message"); Assert.IsFalse(resultDest.Equals(resultSource)); }
public void DoisErrorsResultIguaisDevemRetornarEqualIgualATrue() { ErrorResult resultDest = new ErrorResult("key", "message"); ErrorResult resultSource = new ErrorResult("key", "message"); Assert.IsTrue(resultDest.Equals(resultSource)); }
public void DoisErrorsResultDiferentesDevemRetornarEqualIgualAFalse() { ErrorResult resultDest = new ErrorResult("key", "message"); ErrorResult resultSource = new ErrorResult("key", "other message"); Assert.IsFalse(resultDest.Equals(resultSource)); }