public void SimpleDictionaryCollection_Add_EnsureWhenCollectionEnlargedItemNotLost()
        {
            var messenger = Substitute.For <IFrameworkMessenger>();

            ISimpleCollection <int> collection = new SimpleDictionaryCollection <int>(messenger, 1);

            collection.Add(25UL, 6);
            collection.Add(35UL, 7);

            Assert.True(collection.Contains(25UL));
            Assert.True(collection.Contains(35UL));
        }
        public void SimpleDictionaryCollection_Contains_EnsureCorrectResponse()
        {
            var messenger = Substitute.For <IFrameworkMessenger>();

            ISimpleCollection <int> collection = new SimpleDictionaryCollection <int>(messenger, 16);

            collection.Add(25UL, 6);
            collection.Add(35UL, 7);
            collection.Add(45UL, 8);
            collection.Add(55UL, 9);

            Assert.True(collection.Contains(25UL));
            Assert.False(collection.Contains(65UL));
        }