aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-23 22:29:27 +0000
committerJustin Clark-Casey (justincc)2011-03-23 22:29:27 +0000
commitde88227bc486788197b3a7c842c8b60f82b0a29b (patch)
treee48342e8a2d2096cf0355eea92dbf68805ad1e77 /OpenSim/Region/CoreModules
parentuse a 3 part object for the pcm test rather than a 1 part, for improved test ... (diff)
downloadopensim-SC-de88227bc486788197b3a7c842c8b60f82b0a29b.zip
opensim-SC-de88227bc486788197b3a7c842c8b60f82b0a29b.tar.gz
opensim-SC-de88227bc486788197b3a7c842c8b60f82b0a29b.tar.bz2
opensim-SC-de88227bc486788197b3a7c842c8b60f82b0a29b.tar.xz
refactor: simplify part of AddSceneObject() test setup by moving sog construction into SceneSetupHelpers.CreateSceneObject()
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
index 8c1b6a3..72f74fa 100644
--- a/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
+++ b/OpenSim/Region/CoreModules/World/Land/Tests/PrimCountModuleTests.cs
@@ -62,16 +62,7 @@ namespace OpenSim.Region.CoreModules.World.Land.Tests
62 lmm.AddLandObject(lo); 62 lmm.AddLandObject(lo);
63 //scene.loadAllLandObjectsFromStorage(scene.RegionInfo.originRegionID); 63 //scene.loadAllLandObjectsFromStorage(scene.RegionInfo.originRegionID);
64 64
65 SceneObjectPart part1 65 SceneObjectGroup sog = SceneSetupHelpers.CreateSceneObject(3, userId);
66 = new SceneObjectPart(userId, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero)
67 { Name = "obj1", UUID = new UUID("00000000-0000-0000-0000-000000000001") };
68 SceneObjectGroup sog = new SceneObjectGroup(part1);
69 sog.AddPart(
70 new SceneObjectPart(userId, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero)
71 { Name = "obj2", UUID = new UUID("00000000-0000-0000-0000-000000000002") });
72 sog.AddPart(
73 new SceneObjectPart(userId, PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero)
74 { Name = "obj3", UUID = new UUID("00000000-0000-0000-0000-000000000003") });
75 66
76 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0)); 67 Assert.That(pcm.GetOwnerCount(lo.LandData.GlobalID), Is.EqualTo(0));
77 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0)); 68 Assert.That(pcm.GetGroupCount(lo.LandData.GlobalID), Is.EqualTo(0));