aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
index 38b2356..f006db2 100644
--- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
+++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
@@ -199,6 +199,38 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
199 Assert.That(pc.Simulator, Is.EqualTo(3)); 199 Assert.That(pc.Simulator, Is.EqualTo(3));
200 } 200 }
201 201
202 /// <summary>
203 /// Test count after a parcel owner owned object is removed.
204 /// </summary>
205 [Test]
206 public void TestRemoveGroupObject()
207 {
208 TestHelper.InMethod();
209// log4net.Config.XmlConfigurator.Configure();
210
211 m_lo.DeedToGroup(m_groupId);
212
213 IPrimCounts pc = m_lo.PrimCounts;
214
215 SceneObjectGroup sogToKeep = SceneSetupHelpers.CreateSceneObject(1, m_userId, 0x1);
216 sogToKeep.GroupID = m_groupId;
217 m_scene.AddNewSceneObject(sogToKeep, false);
218
219 SceneObjectGroup sogToDelete = SceneSetupHelpers.CreateSceneObject(3, m_userId, 0x10);
220 m_scene.AddNewSceneObject(sogToDelete, false);
221 m_scene.DeleteSceneObject(sogToDelete, false);
222
223 Assert.That(pc.Owner, Is.EqualTo(0));
224 Assert.That(pc.Group, Is.EqualTo(1));
225 Assert.That(pc.Others, Is.EqualTo(0));
226 Assert.That(pc.Total, Is.EqualTo(1));
227 Assert.That(pc.Selected, Is.EqualTo(0));
228 Assert.That(pc.Users[m_userId], Is.EqualTo(1));
229 Assert.That(pc.Users[m_groupId], Is.EqualTo(0));
230 Assert.That(pc.Users[m_otherUserId], Is.EqualTo(0));
231 Assert.That(pc.Simulator, Is.EqualTo(1));
232 }
233
202 [Test] 234 [Test]
203 public void TestAddOthersObject() 235 public void TestAddOthersObject()
204 { 236 {