public void test_query_0 () { bool loadResult = testAgent.btload("node_test/query_subtree_0"); if(!loadResult) { Debug.LogError("node_test/query_subtree_0 " + "load failed!"); Assert.Fail(); } loadResult = testAgent.btload("node_test/query_subtree_1"); if(!loadResult) { Debug.LogError("node_test/query_subtree_1 " + "load failed!"); Assert.Fail(); } loadResult = testAgent.btload("node_test/query_subtree_2"); if(!loadResult) { Debug.LogError("node_test/query_subtree_2 " + "load failed!"); Assert.Fail(); } testAgent.btsetcurrent("node_test/query_ut_0"); testAgent.resetProperties(); behaviac.EBTStatus status = testAgent.btexec(); // status = testAgent.btexec(); // status = testAgent.btexec(); Assert.AreEqual(1, testAgent.testVar_0); Assert.AreEqual(behaviac.EBTStatus.BT_SUCCESS, status); }