public void IsRunning()
		{
			var tcpServer = new TcpServer();
			tcpServer.Start(Port);
			Assert.IsTrue(tcpServer.IsRunning);
			tcpServer.Dispose();
		}
Exemple #2
0
		public void CreateLocalEchoServer()
		{
			serverPort++;
			serverReceivedMessageCount = 0;
			clientReceivedResponseCount = 0;
			echoServer = new TcpServer();
			echoServer.Start(serverPort);
			echoServer.ClientDataReceived += (connection, data) => connection.Send(data);
		}