ServerTests DisconnectClient Method Delta Engine Documentation

Namespace: DeltaEngine.Networking.Tests
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DisconnectClient()
Examples

[Test]
public void DisconnectClient()
{
    bool didClientDisconnect = false;
    server.ClientDisconnected += c => didClientDisconnect = true;
    var client = CreateConnectedClient();
    client.Dispose();
    Assert.IsTrue(didClientDisconnect);
}
See Also