remove some obsolete tests that are now done elsewhere
parent
e37f8cf902
commit
eec54adac5
|
@ -141,58 +141,58 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
// Assert.That(childPresence.IsChildAgent, Is.True);
|
// Assert.That(childPresence.IsChildAgent, Is.True);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Test adding a root agent to a scene. Doesn't yet actually complete crossing the agent into the scene.
|
// /// Test adding a root agent to a scene. Doesn't yet actually complete crossing the agent into the scene.
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
[Test]
|
// [Test]
|
||||||
public void T010_TestAddRootAgent()
|
// public void T010_TestAddRootAgent()
|
||||||
{
|
// {
|
||||||
TestHelpers.InMethod();
|
// TestHelpers.InMethod();
|
||||||
|
//
|
||||||
string firstName = "testfirstname";
|
// string firstName = "testfirstname";
|
||||||
|
//
|
||||||
AgentCircuitData agent = new AgentCircuitData();
|
// AgentCircuitData agent = new AgentCircuitData();
|
||||||
agent.AgentID = agent1;
|
// agent.AgentID = agent1;
|
||||||
agent.firstname = firstName;
|
// agent.firstname = firstName;
|
||||||
agent.lastname = "testlastname";
|
// agent.lastname = "testlastname";
|
||||||
agent.SessionID = UUID.Random();
|
// agent.SessionID = UUID.Random();
|
||||||
agent.SecureSessionID = UUID.Random();
|
// agent.SecureSessionID = UUID.Random();
|
||||||
agent.circuitcode = 123;
|
// agent.circuitcode = 123;
|
||||||
agent.BaseFolder = UUID.Zero;
|
// agent.BaseFolder = UUID.Zero;
|
||||||
agent.InventoryFolder = UUID.Zero;
|
// agent.InventoryFolder = UUID.Zero;
|
||||||
agent.startpos = Vector3.Zero;
|
// agent.startpos = Vector3.Zero;
|
||||||
agent.CapsPath = GetRandomCapsObjectPath();
|
// agent.CapsPath = GetRandomCapsObjectPath();
|
||||||
agent.ChildrenCapSeeds = new Dictionary<ulong, string>();
|
// agent.ChildrenCapSeeds = new Dictionary<ulong, string>();
|
||||||
agent.child = true;
|
// agent.child = true;
|
||||||
|
//
|
||||||
scene.PresenceService.LoginAgent(agent.AgentID.ToString(), agent.SessionID, agent.SecureSessionID);
|
// scene.PresenceService.LoginAgent(agent.AgentID.ToString(), agent.SessionID, agent.SecureSessionID);
|
||||||
|
//
|
||||||
string reason;
|
// string reason;
|
||||||
scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason);
|
// scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason);
|
||||||
testclient = new TestClient(agent, scene);
|
// testclient = new TestClient(agent, scene);
|
||||||
scene.AddNewClient(testclient);
|
// scene.AddNewClient(testclient);
|
||||||
|
//
|
||||||
ScenePresence presence = scene.GetScenePresence(agent1);
|
// ScenePresence presence = scene.GetScenePresence(agent1);
|
||||||
|
//
|
||||||
Assert.That(presence, Is.Not.Null, "presence is null");
|
// Assert.That(presence, Is.Not.Null, "presence is null");
|
||||||
Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
|
// Assert.That(presence.Firstname, Is.EqualTo(firstName), "First name not same");
|
||||||
acd1 = agent;
|
// acd1 = agent;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Test removing an uncrossed root agent from a scene.
|
// /// Test removing an uncrossed root agent from a scene.
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
[Test]
|
// [Test]
|
||||||
public void T011_TestRemoveRootAgent()
|
// public void T011_TestRemoveRootAgent()
|
||||||
{
|
// {
|
||||||
TestHelpers.InMethod();
|
// TestHelpers.InMethod();
|
||||||
|
//
|
||||||
scene.RemoveClient(agent1);
|
// scene.RemoveClient(agent1);
|
||||||
|
//
|
||||||
ScenePresence presence = scene.GetScenePresence(agent1);
|
// ScenePresence presence = scene.GetScenePresence(agent1);
|
||||||
|
//
|
||||||
Assert.That(presence, Is.Null, "presence is not null");
|
// Assert.That(presence, Is.Null, "presence is not null");
|
||||||
}
|
// }
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void T012_TestAddNeighbourRegion()
|
public void T012_TestAddNeighbourRegion()
|
||||||
|
|
Loading…
Reference in New Issue