Пример #1
0
        public void test_success_at_first()
        {
            var testNode = new SelectNode(
                "testNode",
                new List <IBehaviorNode>()
            {
                successNode1.Object,
                successNode2.Object
            });

            testNode.Execute(bContext.Object);

            successNode1.Verify(x => x.Execute(bContext.Object));
            successNode2.Verify(x => x.Execute(bContext.Object), Times.Never);
        }