public void ToString_returns_success_for_unit_result() { UnitResult <ErrorType> result = Result.Success <ErrorType>(); Assert.Equal("Success", result.ToString()); }
public void ToString_returns_failure_with_generic_error_when_unit_result_failure() { UnitResult <ErrorType> subject = UnitResult.Failure(ErrorType.Error1); Assert.Equal("Failure(Error1)", subject.ToString()); }