extend move test to check one beat of the simulator without actually asking the npc to move.

This commit is contained in:
Justin Clark-Casey (justincc)
2011-08-03 23:06:18 +01:00
parent d78fe44191
commit 21d8a6b0e8
2 changed files with 15 additions and 5 deletions

View File

@@ -87,7 +87,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
public void TestMove()
{
TestHelper.InMethod();
log4net.Config.XmlConfigurator.Configure();
// log4net.Config.XmlConfigurator.Configure();
IConfigSource config = new IniConfigSource();
@@ -106,6 +106,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
ScenePresence npc = scene.GetScenePresence(npcId);
Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos));
// For now, we'll make the scene presence fly to simplify this test, but this needs to change.
npc.PhysicsActor.Flying = true;
scene.Update();
Assert.That(npc.AbsolutePosition, Is.EqualTo(startPos));
// Not yet complete
}
}