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

[Test, CloseAfterFirstFrame]
public void SendMessagesServerToClient()
{
    serverSession.SendMessage("hello");
    serverSession.SendMessage(9);
    Pause();
    List<MessagingSession.Message> messages = clientSession.GetMessages();
    Assert.AreEqual(2, messages.Count);
    VerifyMessageContents(messages[0], 0, "hello");
    VerifyMessageContents(messages[1], 0, 9);
}
See Also