aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
index fd332ed..88c814e 100644
--- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
+++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
@@ -55,6 +55,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
55 Scene scene = SceneSetupHelpers.SetupScene(); 55 Scene scene = SceneSetupHelpers.SetupScene();
56 SceneSetupHelpers.SetupSceneModules(scene, lmm, pcm); 56 SceneSetupHelpers.SetupSceneModules(scene, lmm, pcm);
57 57
58 UUID dummyUserId = new UUID("99999999-9999-9999-9999-999999999999");
58 ILandObject lo = new LandObject(UUID.Zero, false, scene); 59 ILandObject lo = new LandObject(UUID.Zero, false, scene);
59 lo.SetLandBitmap(lo.GetSquareLandBitmap(0, 0, (int)Constants.RegionSize, (int)Constants.RegionSize)); 60 lo.SetLandBitmap(lo.GetSquareLandBitmap(0, 0, (int)Constants.RegionSize, (int)Constants.RegionSize));
60 lmm.AddLandObject(lo); 61 lmm.AddLandObject(lo);
@@ -68,10 +69,20 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
68 { Name = objName, UUID = objUuid }; 69 { Name = objName, UUID = objUuid };
69 70
70 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0)); 71 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0));
72 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0));
73 Assert.That(pcm.GetOthersCount(lo.LandData.GlobalID), Is.EqualTo(0));
74 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, UUID.Zero), Is.EqualTo(0));
75 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, dummyUserId), Is.EqualTo(0));
76 Assert.That(pcm.GetSimulatorCount(lo.LandData.GlobalID), Is.EqualTo(0));
71 77
72 scene.AddNewSceneObject(new SceneObjectGroup(part), false); 78 scene.AddNewSceneObject(new SceneObjectGroup(part), false);
73 79
74 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1)); 80 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(1));
81 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0));
82 Assert.That(pcm.GetOthersCount(lo.LandData.GlobalID), Is.EqualTo(0));
83 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, UUID.Zero), Is.EqualTo(1));
84 Assert.That(pcm.GetUserCount(lo.LandData.GlobalID, dummyUserId), Is.EqualTo(0));
85 Assert.That(pcm.GetSimulatorCount(lo.LandData.GlobalID), Is.EqualTo(1));
75 } 86 }
76 } 87 }
77} \ No newline at end of file 88} \ No newline at end of file