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

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