private IEnumerator ByEnumeratorWithArgAndRoutineControlResultShouldProvideRoutine(bool arg, RoutineControl <bool> routineControl) { Assert.True(arg); routineControl.SetResult(true); yield return(null); }
private IEnumerator ByEnumeratorWithResultShouldProvideResult(RoutineControl <bool> routineControl) { yield return(null); yield return(null); routineControl.SetResult(true); }
public void RoutineControlShouldThrowExceptionWhenCallSetResultAndRoutineIsNotDefinedTest() { var routineControl = new RoutineControl <bool>(); Assert.Throws(ExceptionHelper.SetResultCannotCalledWhenRoutineIsNotDefined.GetType(), () => routineControl.SetResult(true), ExceptionHelper.Messages.SetResultCannotCalledWhenRoutineIsNotDefined, Array.Empty <object>()); }