Example #1
0
        public void WhenChildReturnRunning_ReturnRunning()
        {
            var sut = new Failer <MockContext>(new MockBehaviour {
                ReturnStatus = BehaviourStatus.Running
            });

            var behaviourStatus = sut.Tick(new MockContext());

            Assert.That(behaviourStatus, Is.EqualTo(BehaviourStatus.Running));
        }
Example #2
0
        public void WhenChildReturnFailure_ReturnFailure()
        {
            var sut = new Failer <MockContext>(new MockBehaviour {
                ReturnStatus = BehaviourStatus.Failed
            });

            var behaviourStatus = sut.Tick(new MockContext());

            Assert.That(behaviourStatus, Is.EqualTo(BehaviourStatus.Failed));
        }