public void ContainsKeyPerformsCorrectly()
        {
            MockSubscriptionCollection subscriptions = new MockSubscriptionCollection();

            MockSubscription subscription = new MockSubscription("test", "testPub");

            subscriptions.Add(subscription);

            subscription = new MockSubscription("another", "anotherPub");
            subscriptions.Add(subscription);

            Assert.IsTrue(subscriptions.ContainsKey("test"));
            Assert.IsTrue(subscriptions.ContainsKey("another"));
            Assert.IsFalse(subscriptions.ContainsKey("not"));
        }
        public void NewSubscriptionCollectHasNoElements()
        {
            MockSubscriptionCollection subscriptions = new MockSubscriptionCollection();
            MockSubscription           subscription  = new MockSubscription("test", "testPub");

            Assert.AreEqual(0, subscriptions.Count);
            Assert.AreEqual(-1, subscriptions.Find("test"));
            Assert.AreEqual(-1, subscriptions.Find(subscription));
            Assert.IsFalse(subscriptions.ContainsKey("test"));
            Assert.IsFalse(subscriptions.Contains(subscription));
        }