Beispiel #1
0
        public void ShouldNotConnectWhenAutoconnectOptionSetToFalse()
        {
            var log = LogManager.GetLogger(Global.CallerName());

            log.Info("Start");
            ManualResetEvent = new ManualResetEvent(false);

            var options = CreateOptions();

            options.AutoConnect = false;
            var uri = CreateUri();

            socket = IO.Socket(uri, options);
            Assert.Null(socket.Io().EngineSocket);
        }
        public void ShouldNotConnectWhenAutoconnectOptionSetToFalse()
        {
            var log = LogManager.GetLogger(Global.CallerName());
            log.Info("Start");
            ManualResetEvent = new ManualResetEvent(false);

            var options = CreateOptions();
            options.AutoConnect = false;
            var uri = CreateUri();
            socket = IO.Socket(uri, options);
            Assert.Null(socket.Io().EngineSocket);
        }