public void Connect_WhileConnected_ThrowsException()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            _connection.Connect();

            Assert.IsTrue(_connection.IsConnected);
        }
예제 #2
0
        public void Connect_WhileConnected_ThrowsException()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            _connection.Connect();

            Assert.IsTrue(_connection.IsConnected);
        }
        public void Connect_ServerIsUp_CanConnect()
        {
            _connection = TestHelper.CreateConnection();

            _connection.Connect();

            Assert.IsTrue(_connection.IsConnected);
        }
예제 #4
0
        public void Connect_ServerIsUp_CanConnect()
        {
            _connection = TestHelper.CreateConnection();

            _connection.Connect();

            Assert.IsTrue(_connection.IsConnected);
        }
        public void Dispose_WhenConnected_GetsDisconnected()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            _connection.Dispose();

            Assert.IsFalse(_connection.IsConnected);
        }
예제 #6
0
        public void Dispose_WhenConnected_GetsDisconnected()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            _connection.Dispose();

            Assert.IsFalse(_connection.IsConnected);
        }
        public void GetPipeStream_WhenConnected_ReturnsStream()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            using (var stream = _connection.GetPipeStream())
            {
                Assert.IsNotNull(stream);
            }
        }
예제 #8
0
        public void GetPipeStream_WhenConnected_ReturnsStream()
        {
            _connection = TestHelper.CreateConnection();
            _connection.Connect();

            using(var stream = _connection.GetPipeStream())
            {
                Assert.IsNotNull(stream);
            }
        }
예제 #9
0
        public void Connect_NoServerIsUp_ThrowsException()
        {
            var dummyHost = Guid.NewGuid().ToString();
            var dummyConnectionInfo = new SimoConnectionInfo(dummyHost, SimoConnectionInfo.DefaultPort);
            _connection = new SimoConnection(dummyConnectionInfo);

            _connection.Connect();

            Assert.Fail("Connect should have generated exception.");
        }
        public void Connect_NoServerIsUp_ThrowsException()
        {
            var dummyHost           = Guid.NewGuid().ToString();
            var dummyConnectionInfo = new SimoConnectionInfo(dummyHost, SimoConnectionInfo.DefaultPort);

            _connection = new SimoConnection(dummyConnectionInfo);

            _connection.Connect();

            Assert.Fail("Connect should have generated exception.");
        }