public void Bind_E_returns_unit_result_failure_and_does_not_execute_func()
        {
            UnitResult <E> input = UnitResult.Failure(E.Value);

            UnitResult <E> output = input.Bind(GetUnitResult_E_Task).Result;

            AssertFailure(output);
        }
Exemplo n.º 2
0
        public void Bind_E_returns_failure_and_does_not_execute_func()
        {
            UnitResult <E> input = UnitResult.Failure <E>(E.Value);

            UnitResult <E> output = input.Bind(GetResult_T_E);

            AssertFailure(output);
        }
        public void Bind_E_selects_new_unit_result()
        {
            UnitResult <E> input = UnitResult.Success <E>();

            UnitResult <E> output = input.Bind(GetUnitResult_E_Task).Result;

            AssertSuccess(output);
        }
Exemplo n.º 4
0
        public void Bind_E_selects_new_result()
        {
            UnitResult <E> input = UnitResult.Success <E>();

            UnitResult <E> output = input.Bind(GetResult_T_E);

            AssertSuccess(output);
        }