aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-11 23:32:43 +0000
committerJustin Clark-Casey (justincc)2011-11-11 23:32:43 +0000
commitacaf6937c54071f93a09de7332b4a95bf2a2c88e (patch)
treecbcec2a85d042eeb5294f6609f125e2cb395d643 /OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
parentextract ground sit code into SP.HandleAgentSitOnGround() for consistency with... (diff)
downloadopensim-SC-acaf6937c54071f93a09de7332b4a95bf2a2c88e.zip
opensim-SC-acaf6937c54071f93a09de7332b4a95bf2a2c88e.tar.gz
opensim-SC-acaf6937c54071f93a09de7332b4a95bf2a2c88e.tar.bz2
opensim-SC-acaf6937c54071f93a09de7332b4a95bf2a2c88e.tar.xz
add sit and stand on ground test
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
index a1d30f3..e3ffb53 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs
@@ -153,5 +153,28 @@ namespace OpenSim.Region.Framework.Scenes.Tests
153 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero)); 153 Assert.That(part.SitTargetAvatar, Is.EqualTo(UUID.Zero));
154 Assert.That(sp.ParentID, Is.EqualTo(0)); 154 Assert.That(sp.ParentID, Is.EqualTo(0));
155 } 155 }
156
157 [Test]
158 public void TestSitAndStandOnGround()
159 {
160 TestHelpers.InMethod();
161// log4net.Config.XmlConfigurator.Configure();
162
163 ScenePresence sp = SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1));
164
165 // If a prim has a sit target then we can sit from any distance away
166// Vector3 startPos = new Vector3(128, 128, 30);
167// sp.AbsolutePosition = startPos;
168
169 sp.HandleAgentSitOnGround();
170
171 Assert.That(sp.SitGround, Is.True);
172 Assert.That(sp.PhysicsActor, Is.Null);
173
174 sp.StandUp();
175
176 Assert.That(sp.SitGround, Is.False);
177 Assert.That(sp.PhysicsActor, Is.Not.Null);
178 }
156 } 179 }
157} \ No newline at end of file 180} \ No newline at end of file