* Add forgotton tag to existing remove scene object test
parent
81dcf223bf
commit
890beb442a
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue