using System.Collections.Generic; using NUnit.Framework; namespace Chernobyl.Collections.Generic.Event { [TestFixture, Description("Tests for the EventCollection type.")] public class DecoratingEventCollectionTests : EventCollectionTests { public DecoratingEventCollectionTests() : base(false) {} protected override IEventCollection CreateSingleItemEventCollection() { IEventCollection collection = new DecoratingEventCollection(new List()); collection.Add(1); return collection; } protected override IEventCollection CreateManyItemEventCollection() { IEventCollection collection = new DecoratingEventCollection(new List()); collection.Add(1); collection.Add(2); collection.Add(3); collection.Add(4); collection.Add(5); collection.Add(6); collection.Add(7); return collection; } protected override int CreateItem() { return 10; } } }