public void EventEmitterShouldNotEmitAnEventToAnUnregisteredPusherEventEventName()
        {
            // Arrange
            PusherEvent emittedEvent  = null;
            PusherEvent emittedEvent2 = null;

            var myAction  = new Action <PusherEvent>(o => emittedEvent = o);
            var myAction2 = new Action <PusherEvent>(o => emittedEvent2 = o);

            var emitter = new PusherClient.EventEmitter();

            emitter.Bind("pusher event listener event", myAction);
            emitter.Bind("pusher event listener event", myAction2);
            emitter.Unbind("pusher event listener event");

            // Act
            emitter.EmitEvent("pusher event listener event", CreateTestEvent());

            // Assert
            Assert.IsNull(emittedEvent);
            Assert.IsNull(emittedEvent2);
        }
        public void EventEmitterShouldNotEmitAnEventToAnUnregisteredRawListener()
        {
            // Arrange
            string emittedEvent  = null;
            string emittedEvent2 = null;

            var myAction  = new Action <string>(o => emittedEvent = o);
            var myAction2 = new Action <string>(o => emittedEvent2 = o);

            var emitter = new PusherClient.EventEmitter();

            emitter.Bind("raw listener event", myAction);
            emitter.Bind("raw listener event", myAction2);
            emitter.Unbind("raw listener event", myAction);

            // Act
            emitter.EmitEvent("raw listener event", CreateTestEvent());

            // Assert
            Assert.IsNull(emittedEvent);
            Assert.IsNotNull(emittedEvent2);
        }