public void Finally_unit_result_E_executes_on_failure_returns_K() { UnitResult <E> result = UnitResult.Failure(E.Value); K output = result.Finally(Func_Unit_Result_E); AssertCalled(result, output); }
public async Task Finally_RightAsync_unit_result_E_executes_on_failure_returns_K() { UnitResult <E> result = UnitResult.Failure(E.Value); K output = await result.Finally(Task_Func_Unit_Result_E); AssertCalled(result, output); }
public void Finally_unit_result_E_executes_on_success_returns_K() { UnitResult <E> result = UnitResult.Success <E>(); K output = result.Finally(Func_Unit_Result_E); AssertCalled(result, output); }
public async Task Finally_RightAsync_unit_result_E_executes_on_success_returns_K() { UnitResult <E> result = UnitResult.Success <E>(); K output = await result.Finally(Task_Func_Unit_Result_E); AssertCalled(result, output); }