* Add forgotton tag to existing remove scene object test

0.6.1-post-fixes
Justin Clarke Casey 2008-11-20 17:18:39 +00:00
parent 81dcf223bf
commit 890beb442a
2 changed files with 27 additions and 0 deletions

View File

@ -72,6 +72,7 @@ namespace OpenSim.Region.Environment.Scenes.Tests
/// <summary>
/// Test removing an object from a scene.
/// </summary>
[Test]
public void TestRemoveSceneObject()
{
TestScene scene = SceneTestUtils.SetupScene();

View File

@ -70,6 +70,32 @@ namespace OpenSim.Region.Environment.Scenes.Tests
return testScene;
}
/// <summary>
/// Add a root agent
/// </summary>
/// <param name="scene"></param>
/// <param name="agentId"></param>
/// <returns></returns>
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);
}
/// <summary>
/// Add a test object
/// </summary>