Add agent circuit number checks to TestCloseAgent()

This commit is contained in:
Justin Clark-Casey (justincc)
2011-12-03 16:04:11 +00:00
parent aba42d8543
commit aac3f2d04e

View File

@@ -103,11 +103,15 @@ namespace OpenSim.Region.Framework.Scenes.Tests
ScenePresence sp = SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1));
Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Not.Null);
Assert.That(scene.AuthenticateHandler.AgentCircuits.Count, Is.EqualTo(1));
Assert.That(scene.AuthenticateHandler.AgentCircuitsByUUID.Count, Is.EqualTo(1));
scene.IncomingCloseAgent(sp.UUID);
Assert.That(scene.GetScenePresence(sp.UUID), Is.Null);
Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(sp.UUID), Is.Null);
Assert.That(scene.AuthenticateHandler.AgentCircuits.Count, Is.EqualTo(0));
Assert.That(scene.AuthenticateHandler.AgentCircuitsByUUID.Count, Is.EqualTo(0));
}
/// <summary>