Пример #1
0
        public void Return_Completed_Coroutine_On_Run()
        {
            var entry = new Coroutines.Execute.Entry(action);
            var exit  = entry.Run();

            exit.Completed.Should().BeTrue();
        }
Пример #2
0
        public void Call_Action_On_Run()
        {
            var entry = new Coroutines.Execute.Entry(action);

            entry.Run();

            action.Received(1).Invoke();
        }
Пример #3
0
        public void Entry_Must_Not_Be_Completed()
        {
            var entry = new Coroutines.Execute.Entry(action);

            entry.Completed.Should().BeFalse();
        }