using System.Collections.Generic; namespace Chernobyl.Collections.Generic.Event { /// /// Tests for implementations of . /// /// The type of the key. /// The type of the value. public abstract class EventDictionaryTests : EventCollectionTests> { protected EventDictionaryTests(bool testIterationOrder) : base(testIterationOrder) {} /// /// Creates the instance to be tested with a single item. /// /// The instance to be tested. protected abstract IEventDictionary CreateSingleItemEventDictionary(); /// /// Creates the instance to be tested with a 5 or more items. /// /// The instance to be tested. protected abstract IEventDictionary CreateManyItemEventDictionary(); protected override IEventCollection> CreateSingleItemEventCollection() { return CreateSingleItemEventDictionary(); } protected override IEventCollection> CreateManyItemEventCollection() { return CreateManyItemEventDictionary(); } } }