public void RunningChildReturnsRunning() { var child = new ReturnXNode(NodeStatus.RUNNING); var node = new ForceFailureNode(child); var status = node.Tick(); Assert.That(status, Is.EqualTo(NodeStatus.RUNNING)); }
public void FailureChildReturnsFailure() { var child = new AlwaysFailureNode(); var node = new ForceFailureNode(child); var status = node.Tick(); Assert.That(status, Is.EqualTo(NodeStatus.FAILURE)); }