Ejemplo n.º 1
0
        public void PrepareClientWillRegisterANewClientToServer()
        {
            var client = _voiceServer.PrepareClient(5);

            Assert.NotNull(client);
            Assert.IsInstanceOf <FakeVoiceClient>(client);
            Assert.AreEqual(5, client.Identifer);

            _voiceServer.RemoveClient(client);
        }
Ejemplo n.º 2
0
        public void TearDown()
        {
            _voiceServer.RemoveClient(_voiceClient);
            _voiceClient = null;

            _voiceServer.Dispose();
            _voiceServer = null;

            _voiceWrapper = null;

            _clientConnectingInvokes     = 0;
            _clientConnectedInvokes      = 0;
            _clientDisconnectedInvokes   = 0;
            _clientSpeakersMuteInvokes   = 0;
            _clientMicrophoneMuteInvokes = 0;
            _clientRejectedInvokes       = 0;
            _clientTalkingChangedInvokes = 0;
        }