示例#1
0
        public void RunBeforeEveryTest()
        {
            var networkUtilities = new NetworkUtilities();

            _localIpAddress = networkUtilities.GetLocalIPAddress();
            _server         = new TcpConnectionServer(_localIpAddress, 15845);
        }
示例#2
0
        public void RunBeforeEveryTest()
        {
            var networkUtilities = new NetworkUtilities();

            _localIpAddress = networkUtilities.GetLocalIPAddress();
            _server         = new TcpConnectionServer(_localIpAddress, 15845);
            _testClient     = Substitute.For <IConnectionClient>();
        }
示例#3
0
        public void RunBeforeEveryTest()
        {
            var networkUtilities = new NetworkUtilities();

            _localIpAddress = networkUtilities.GetLocalIPAddress();
            _testPort       = 15987;
            _testListener   = new TcpConnectionServer(_localIpAddress, _testPort);
            _testListener.StartServer();
        }
示例#4
0
    private void Install()
    {
        var service          = new NetworkUtilities();
        var scheduler        = new CommandScheduler();
        var serverConnection = new TcpConnectionServer(service.GetLocalIPAddress(), ServerPort);

        _server         = new EditorConnectionServer(serverConnection, scheduler, BroadcastPort);
        ServerText.text = string.Format("Server running on {0}", serverConnection.Adress + ":" + serverConnection.Port.ToString());
    }
示例#5
0
 public void RunAfterEveryTest()
 {
     _localIpAddress = null;
     _server.StopServer();
     _server = null;
 }