From 4c731dd44e6c7946c86db596f5ec1c84417b6d71 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Mon, 10 Nov 2008 21:12:53 +0000
Subject: * Remove mono warnings * Remove duplicate test part
---
.../Environment/Scenes/Tests/EntityListTests.cs | 41 +++++-----------------
1 file changed, 9 insertions(+), 32 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/Tests')
diff --git a/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs b/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
index 94b1fdd..65f0dcb 100644
--- a/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
+++ b/OpenSim/Region/Environment/Scenes/Tests/EntityListTests.cs
@@ -55,19 +55,8 @@ namespace OpenSim.Region.Environment.Scenes.Tests
catch
{
// I don't care, just leave log4net off
- }
- }
-
- static public Random random;
- SceneObjectGroup found;
- Scene scene;
-
- ///
- /// Test adding an object to a scene. Doesn't yet do what it says on the tin.
- ///
- [Test]
- public void T001_TestAddSceneObject()
- {
+ }
+
RegionInfo regInfo = new RegionInfo(1000, 1000, null, null);
regInfo.RegionName = "Unit test region";
AgentCircuitManager acm = new AgentCircuitManager();
@@ -79,24 +68,12 @@ namespace OpenSim.Region.Environment.Scenes.Tests
IConfigSource configSource = new IniConfigSource();
scene
- = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
-
- SceneObjectGroup sceneObject = new SceneObjectGroup();
- SceneObjectPart part
- = new SceneObjectPart(UUID.Random(), PrimitiveBaseShape.Default, Vector3.Zero, Quaternion.Identity, Vector3.Zero);
- //part.UpdatePrimFlags(false, false, true);
- part.ObjectFlags |= (uint)PrimFlags.Phantom;
-
- sceneObject.SetRootPart(part);
-
- scene.AddNewSceneObject(sceneObject, false);
-
- SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
-
- //System.Console.WriteLine("retrievedPart : {0}", retrievedPart);
- // If the parts have the same UUID then we will consider them as one and the same
- Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID));
+ = new Scene(regInfo, acm, cm, scs, null, sm, null, null, false, false, false, configSource, null);
}
+
+ static public Random random;
+ SceneObjectGroup found;
+ Scene scene;
[Test]
public void T010_AddObjects()
@@ -181,8 +158,8 @@ namespace OpenSim.Region.Environment.Scenes.Tests
{
EntityList entlist = new EntityList();
UUID id = UUID.Random();
- int exceptions = 0;
- Dictionary dict = new Dictionary();
+ //int exceptions = 0;
+ //Dictionary dict = new Dictionary();
List trdlist = new List();
SceneObjectGroup sog = NewSOG(id);
uint lid = sog.LocalId;
--
cgit v1.1