public void Connect_WhileConnected_ThrowsException() { _connection = TestHelper.CreateConnection(); _connection.Connect(); _connection.Connect(); Assert.IsTrue(_connection.IsConnected); }
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); }
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); }
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); } }
public void GetPipeStream_WhenConnected_ReturnsStream() { _connection = TestHelper.CreateConnection(); _connection.Connect(); using(var stream = _connection.GetPipeStream()) { Assert.IsNotNull(stream); } }
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."); }