public void PrioritizedEventListenerDictionaryTests_Remove_Null()
        {
            EventListenerRegistrationComparer comparer = new EventListenerRegistrationComparer();
            var dictionary = new PrioritizedEventListenerDictionary <Type, EventListenerRegistration>(comparer);

            Assert.IsFalse(dictionary.Remove((Type)null));
        }
        public void PrioritizedEventListenerDictionaryTests_Remove_Valid()
        {
            EventListenerRegistrationComparer comparer = new EventListenerRegistrationComparer();
            var dictionary = new PrioritizedEventListenerDictionary <Type, EventListenerRegistration>(comparer);

            var mockListener = new EventListenerRegistration(new MockEventListener(true, false), new MockEventHook(GetType(), (SurvivalKit.Events.Priority.HIGH), null));

            dictionary.Add(GetType(), mockListener);

            Assert.IsTrue(dictionary.Remove(GetType()));
        }