* test: fill out circuit teardown test

0.6.0-stable
Justin Clarke Casey 2008-10-30 19:42:25 +00:00
parent 9f9d97c57b
commit bc1b69b2fd
1 changed files with 10 additions and 1 deletions

View File

@ -157,11 +157,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
/// </summary>
public void TestRemoveClient()
{
uint myCircuitCode = 123457;
TestLLUDPServer testLLUDPServer;
AgentCircuitManager acm;
SetupStack(out testLLUDPServer, out acm);
AddClient(123457, testLLUDPServer, acm);
AddClient(myCircuitCode, testLLUDPServer, acm);
testLLUDPServer.RemoveClientCircuit(myCircuitCode);
Assert.IsFalse(testLLUDPServer.HasCircuit(myCircuitCode));
// Check that removing the circuit again doesn't have any bad effects
testLLUDPServer.RemoveClientCircuit(myCircuitCode);
Assert.IsFalse(testLLUDPServer.HasCircuit(myCircuitCode));
}
}
}