public void CanFindOutIfCollectionContainsNamedObject()
        {
            TestableManagedObjectCollection <object> collection = CreateManagedObjectCollection();
            object obj = new object();

            collection.Add(obj, "Foo");

            Assert.IsTrue(collection.Contains("Foo"));
        }
        public void ContainsDoesNotCheckParent()
        {
            TestableManagedObjectCollection <object> parentCollection = CreateManagedObjectCollection();
            TestableManagedObjectCollection <object> childCollection  = new TestableManagedObjectCollection <object>(parentCollection);
            object obj = new object();

            parentCollection.Add(obj, "Foo");

            Assert.IsFalse(childCollection.Contains("Foo"));
        }