SocketTests SendSingleMessageToServer Method Delta Engine Documentation

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

public void SendSingleMessageToServer()
Examples

[Test, Category("Slow")]
public void SendSingleMessageToServer()
{
    using (var client = CreatedConnectedClient())
    {
        var message = new TextMessage("TestMessage");
        echoServer.ClientDataReceived += (c, m) => Assert.IsTrue(m is TextMessage);
        client.Send(message);
    }
}
See Also