aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-20 17:27:45 +0000
committerJustin Clarke Casey2008-11-20 17:27:45 +0000
commit00d9c3c2cc2edad290365cc9cb39aa86868b2e63 (patch)
treee897ce4984e189c956b79aff8038583153309c0f /OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
parent* Add forgotton tag to existing remove scene object test (diff)
downloadopensim-SC-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.zip
opensim-SC-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.gz
opensim-SC-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.bz2
opensim-SC-00d9c3c2cc2edad290365cc9cb39aa86868b2e63.tar.xz
* Add a scratch test for removing a client from a scene
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
index a82f9b1..fcc6c41 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs
@@ -82,5 +82,23 @@ namespace OpenSim.Region.Environment.Scenes.Tests
82 Assert.That(presence, Is.Not.Null, "presence is null"); 82 Assert.That(presence, Is.Not.Null, "presence is null");
83 Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same"); 83 Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
84 } 84 }
85
86 /// <summary>
87 /// Test removing an uncrossed root agent from a scene.
88 /// </summary>
89 [Test]
90 public void TestRemoveRootAgent()
91 {
92 Scene scene = SceneTestUtils.SetupScene();
93 UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
94
95 SceneTestUtils.AddRootAgent(scene, agentId);
96
97 scene.RemoveClient(agentId);
98
99 ScenePresence presence = scene.GetScenePresence(agentId);
100
101 Assert.That(presence, Is.Null, "presence is not null");
102 }
85 } 103 }
86} 104}