From 890beb442a95439b02cfe27425affebe42586728 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 20 Nov 2008 17:18:39 +0000 Subject: * Add forgotton tag to existing remove scene object test --- .../Environment/Scenes/Tests/SceneObjectTests.cs | 1 + .../Environment/Scenes/Tests/SceneTestUtils.cs | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs index 52447a7..81d88e2 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs @@ -72,6 +72,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests /// /// Test removing an object from a scene. /// + [Test] public void TestRemoveSceneObject() { TestScene scene = SceneTestUtils.SetupScene(); diff --git a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs index 15053f1..2b2a114 100644 --- a/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs +++ b/OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs @@ -71,6 +71,32 @@ namespace OpenSim.Region.Environment.Scenes.Tests } /// + /// Add a root agent + /// + /// + /// + /// + public static void AddRootAgent(Scene scene, UUID agentId) + { + string firstName = "testfirstname"; + + AgentCircuitData agent = new AgentCircuitData(); + agent.AgentID = agentId; + agent.firstname = firstName; + agent.lastname = "testlastname"; + agent.SessionID = UUID.Zero; + agent.SecureSessionID = UUID.Zero; + agent.circuitcode = 123; + agent.BaseFolder = UUID.Zero; + agent.InventoryFolder = UUID.Zero; + agent.startpos = Vector3.Zero; + agent.CapsPath = "http://wibble.com"; + + scene.NewUserConnection(agent); + scene.AddNewClient(new TestClient(agent), false); + } + + /// /// Add a test object /// /// -- cgit v1.1