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)); }
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)); }