* test: fill out circuit teardown test
parent
9f9d97c57b
commit
bc1b69b2fd
|
@ -157,11 +157,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP.Tests
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void TestRemoveClient()
|
public void TestRemoveClient()
|
||||||
{
|
{
|
||||||
|
uint myCircuitCode = 123457;
|
||||||
|
|
||||||
TestLLUDPServer testLLUDPServer;
|
TestLLUDPServer testLLUDPServer;
|
||||||
AgentCircuitManager acm;
|
AgentCircuitManager acm;
|
||||||
SetupStack(out testLLUDPServer, out 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue