aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/ScenePresenceTests.cs18
-rw-r--r--OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs3
2 files changed, 19 insertions, 2 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}
diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
index 2b2a114..1cdd32c 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs
@@ -52,8 +52,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
52 52
53 AgentCircuitManager acm = new AgentCircuitManager(); 53 AgentCircuitManager acm = new AgentCircuitManager();
54 CommunicationsManager cm = new TestCommunicationsManager(); 54 CommunicationsManager cm = new TestCommunicationsManager();
55 //SceneCommunicationService scs = new SceneCommunicationService(cm); 55 SceneCommunicationService scs = new SceneCommunicationService(cm);
56 SceneCommunicationService scs = null;
57 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", ""); 56 StorageManager sm = new OpenSim.Region.Environment.StorageManager("OpenSim.Data.Null.dll", "", "");
58 BaseHttpServer httpServer = new BaseHttpServer(666); 57 BaseHttpServer httpServer = new BaseHttpServer(666);
59 IConfigSource configSource = new IniConfigSource(); 58 IConfigSource configSource = new IniConfigSource();