public SocketReceiveAsyncBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketReceiveAsyncBehavior(_server);
 }
예제 #2
0
 public SocketSendBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketSendBehavior(_client);
 }
예제 #3
0
 public AsyncContextTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _serverAsyncContext = new AsyncContext(_server);
     _clientAsyncContext = new AsyncContext(_client);
 }