aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-04-02 01:15:17 +0100
committerJustin Clark-Casey (justincc)2011-04-02 01:15:17 +0100
commitc13502a5cf938e898ef27f471ac27f0707698543 (patch)
tree77ac7352cde51844a011d07ff7dbe465d1b2617a
parentrefactor: rename m_dummyUserId to m_otherUserId (diff)
downloadopensim-SC_OLD-c13502a5cf938e898ef27f471ac27f0707698543.zip
opensim-SC_OLD-c13502a5cf938e898ef27f471ac27f0707698543.tar.gz
opensim-SC_OLD-c13502a5cf938e898ef27f471ac27f0707698543.tar.bz2
opensim-SC_OLD-c13502a5cf938e898ef27f471ac27f0707698543.tar.xz
add remove others object prim count test
-rw-r--r--OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
index 49ad705..b9eef79 100644
--- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
+++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
@@ -182,6 +182,29 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
182 Assert.That(pc.Simulator, Is.EqualTo(3)); 182 Assert.That(pc.Simulator, Is.EqualTo(3));
183 } 183 }
184 184
185 [Test]
186 public void TestRemoveOthersObject()
187 {
188 TestHelper.InMethod();
189// log4net.Config.XmlConfigurator.Configure();
190
191 IPrimCounts pc = m_lo.PrimCounts;
192
193 m_scene.AddNewSceneObject(SceneSetupHelpers.CreateSceneObject(1, m_otherUserId, 0x1), false);
194 SceneObjectGroup sogToDelete = SceneSetupHelpers.CreateSceneObject(3, m_otherUserId, 0x10);
195 m_scene.AddNewSceneObject(sogToDelete, false);
196 m_scene.DeleteSceneObject(sogToDelete, false);
197
198 Assert.That(pc.Owner, Is.EqualTo(0));
199 Assert.That(pc.Group, Is.EqualTo(0));
200 Assert.That(pc.Others, Is.EqualTo(1));
201 Assert.That(pc.Total, Is.EqualTo(1));
202 Assert.That(pc.Selected, Is.EqualTo(0));
203 Assert.That(pc.Users[m_userId], Is.EqualTo(0));
204 Assert.That(pc.Users[m_otherUserId], Is.EqualTo(1));
205 Assert.That(pc.Simulator, Is.EqualTo(1));
206 }
207
185 /// <summary> 208 /// <summary>
186 /// Test the count is correct after is has been tainted. 209 /// Test the count is correct after is has been tainted.
187 /// </summary> 210 /// </summary>