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

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