diff options
author | Justin Clark-Casey (justincc) | 2012-07-19 21:54:50 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-07-19 21:54:50 +0100 |
commit | e9a121e1b203e8880bcaf85d35612fc6706b281a (patch) | |
tree | 70eb7b09b1b25f432bf4f7e47c684b68cb849126 /OpenSim/Region/Framework/Scenes/Tests/ScenePresenceAgentTests.cs | |
parent | Add basic TestCreateRootScenePresence() regression test (diff) | |
download | opensim-SC_OLD-e9a121e1b203e8880bcaf85d35612fc6706b281a.zip opensim-SC_OLD-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.gz opensim-SC_OLD-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.bz2 opensim-SC_OLD-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.xz |
Add TestCreateDuplicateRootScenePresence() regression test.
Diffstat (limited to '')
-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] |