MessagingTests DisconnectedClientNoLongerReceivesMessagesFromServer 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 DisconnectedClientNoLongerReceivesMessagesFromServer()
Examples

[Test, CloseAfterFirstFrame]
public void DisconnectedClientNoLongerReceivesMessagesFromServer()
{
    clientSession.Disconnect();
    Pause();
    serverSession.SendMessage("hello?");
    Pause();
    Assert.AreEqual(0, clientSession.GetMessages().Count);
}
See Also