diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Tests')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneObjectTests.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Tests/SceneTestUtils.cs | 26 |
2 files changed, 27 insertions, 0 deletions
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 | |||
72 | /// <summary> | 72 | /// <summary> |
73 | /// Test removing an object from a scene. | 73 | /// Test removing an object from a scene. |
74 | /// </summary> | 74 | /// </summary> |
75 | [Test] | ||
75 | public void TestRemoveSceneObject() | 76 | public void TestRemoveSceneObject() |
76 | { | 77 | { |
77 | TestScene scene = SceneTestUtils.SetupScene(); | 78 | 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 | |||
71 | } | 71 | } |
72 | 72 | ||
73 | /// <summary> | 73 | /// <summary> |
74 | /// Add a root agent | ||
75 | /// </summary> | ||
76 | /// <param name="scene"></param> | ||
77 | /// <param name="agentId"></param> | ||
78 | /// <returns></returns> | ||
79 | public static void AddRootAgent(Scene scene, UUID agentId) | ||
80 | { | ||
81 | string firstName = "testfirstname"; | ||
82 | |||
83 | AgentCircuitData agent = new AgentCircuitData(); | ||
84 | agent.AgentID = agentId; | ||
85 | agent.firstname = firstName; | ||
86 | agent.lastname = "testlastname"; | ||
87 | agent.SessionID = UUID.Zero; | ||
88 | agent.SecureSessionID = UUID.Zero; | ||
89 | agent.circuitcode = 123; | ||
90 | agent.BaseFolder = UUID.Zero; | ||
91 | agent.InventoryFolder = UUID.Zero; | ||
92 | agent.startpos = Vector3.Zero; | ||
93 | agent.CapsPath = "http://wibble.com"; | ||
94 | |||
95 | scene.NewUserConnection(agent); | ||
96 | scene.AddNewClient(new TestClient(agent), false); | ||
97 | } | ||
98 | |||
99 | /// <summary> | ||
74 | /// Add a test object | 100 | /// Add a test object |
75 | /// </summary> | 101 | /// </summary> |
76 | /// <param name="scene"></param> | 102 | /// <param name="scene"></param> |