diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceSitTests.cs | 23 |
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 |