Example #1
0
        public void MiddlewaresExecutionOrderTest()
        {
            var server = new MiddlewareTestServer("0.0.0.0", PortProvider.ProviderPort());

            ServerTester.PlayCommonServerTest(server);

            Assert.AreEqual(new int[] { 3, 2, 1 }, server.result.ToArray());
        }
Example #2
0
 public void SslServerMessagePassingTest()
 {
     ServerTester.PlayCommonServerTest(new SslTestServer("0.0.0.0", PortProvider.ProviderPort()), delegate(TestClient.Builder builder) {
         builder.SslEnabled(true);
     });
 }
Example #3
0
 public void ClientToServerMessagePassingTest()
 {
     ServerTester.PlayCommonServerTest(new ServerTester.TestServer("0.0.0.0", PortProvider.ProviderPort()));
 }