Namespace: DeltaEngine.Networking.Tests.Tcp
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Networking.Tests (in DeltaEngine.Networking.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, Category("Slow")] public void SendMessagesToServer() { using (var client = CreatedConnectedClient()) { client.DataReceived += message => clientReceivedResponseCount++; echoServer.ClientDataReceived += (connection, data) => serverReceivedMessageCount++; WaitForServerResponse(); Assert.AreEqual(1, echoServer.NumberOfConnectedClients); for (int messageIndex = 1; messageIndex <= 5; messageIndex++) SendTestMessageAndCheckMessageCount(client, messageIndex); } }
See Also