Exemplo n.º 1
0
        public void WithoutDecoratedNode()
        {
            var invert = new SucceederNode <int, int>();

            Assert.Throws <BehaviourTreeException>(() =>
            {
                invert.Compile();
            });
        }
Exemplo n.º 2
0
        public void ExecutionResult(IBehaviourTreeNode <int, int> node, BehaviourTreeState expectedState)
        {
            var invert = new SucceederNode <int, int>();

            invert.Decorate(node);

            var func  = invert.Compile();
            var state = func(0, 0);

            Assert.Equal(expectedState, state);
        }