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); }
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); }