Ejemplo n.º 1
0
        public void ModelBasedAgentTests_Run_Children()
        {
            AIAgent mbAgent = new ModelBasedAgent(new Model());

            mbAgent.run(new TestAIState("children"));
            bool aiDone = false;

            while (!aiDone)
            {
                if (mbAgent.done)
                {
                    aiDone = true;
                }
            }
            AIState next = mbAgent.next;

            Assert.True(next != null);
        }
Ejemplo n.º 2
0
        public void ModelBasedAgentTests_Run_NullInitalState()
        {
            AIAgent mbAgent = new ModelBasedAgent(new Model());

            mbAgent.run(null);
            bool aiDone = false;

            while (!aiDone)
            {
                if (mbAgent.done)
                {
                    aiDone = true;
                }
            }
            AIState next = mbAgent.next;

            Assert.True(next == null);
        }