private void Disconnect() { _receivedEvents.Clear(); _connection.Disconnect(); SleepModifier(1000); Assert.Equal(ServerStates.Disconnected, _connection.GetActServerState()); }
public void TestConnect() { PrepareFirstServerConnector(); _connection.Connect(Url, Port); sleepModifier(250); Assert.NotNull(_connection); Assert.Equal(ServerStates.Connected, _connection.GetActServerState()); _connection.Disconnect(); _connection = null; }