Пример #1
0
        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));
        }
Пример #2
0
        public void FailureChildReturnsFailure()
        {
            var child = new AlwaysFailureNode();
            var node  = new ForceFailureNode(child);

            var status = node.Tick();

            Assert.That(status, Is.EqualTo(NodeStatus.FAILURE));
        }