diff options
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs | 23 |
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> |