diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs index 44c1396..5758869 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs | |||
@@ -107,6 +107,29 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
107 | Assert.That(sp, Is.Not.Null); | 107 | Assert.That(sp, Is.Not.Null); |
108 | Assert.That(sp.IsChildAgent, Is.False); | 108 | Assert.That(sp.IsChildAgent, Is.False); |
109 | Assert.That(sp.UUID, Is.EqualTo(spUuid)); | 109 | Assert.That(sp.UUID, Is.EqualTo(spUuid)); |
110 | |||
111 | Assert.That(scene.GetScenePresences().Count, Is.EqualTo(1)); | ||
112 | } | ||
113 | |||
114 | [Test] | ||
115 | public void TestCreateDuplicateRootScenePresence() | ||
116 | { | ||
117 | TestHelpers.InMethod(); | ||
118 | // TestHelpers.EnableLogging(); | ||
119 | |||
120 | UUID spUuid = TestHelpers.ParseTail(0x1); | ||
121 | |||
122 | TestScene scene = new SceneHelpers().SetupScene(); | ||
123 | SceneHelpers.AddScenePresence(scene, spUuid); | ||
124 | SceneHelpers.AddScenePresence(scene, spUuid); | ||
125 | |||
126 | Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(spUuid), Is.Not.Null); | ||
127 | Assert.That(scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(1)); | ||
128 | |||
129 | ScenePresence sp = scene.GetScenePresence(spUuid); | ||
130 | Assert.That(sp, Is.Not.Null); | ||
131 | Assert.That(sp.IsChildAgent, Is.False); | ||
132 | Assert.That(sp.UUID, Is.EqualTo(spUuid)); | ||
110 | } | 133 | } |
111 | 134 | ||
112 | [Test] | 135 | [Test] |