public void WhenFailure_IncludesError() { const string errorMessage = "Not the answer"; var result = _failure.AddError(errorMessage); result.Errors.Should().Contain(errorMessage); }
public void WhenSuccess_DiscardsValue() { var result = _success.AddError("Not the answer"); result.HasValue.Should().BeFalse(); }