public void ContainsReturnsFalseForUnknownObjectsAndNull()
        {
            var holder = new UriResolvedObjectHolder();

            Assert.IsFalse(holder.Contains(new object()));
            Assert.IsFalse(holder.Contains(null));
        }
        public void ContainsReturnsTrueForAddedObjects()
        {
            var object1 = new object();
            var object2 = new object();

            var holder = new UriResolvedObjectHolder();

            holder.Add(object1, this._uriResolvedMetadata);
            holder.Add(object2, this._uriResolvedMetadata);

            Assert.IsTrue(holder.Contains(object1));
            Assert.IsTrue(holder.Contains(object2));
        }
        public void ContainsReturnsFalseForRemovedObjects()
        {
            var object1 = new object();
            var object2 = new object();

            var holder = new UriResolvedObjectHolder();

            holder.Add(object1, this._uriResolvedMetadata);
            holder.Remove(object1);

            Assert.IsFalse(holder.Contains(object1));
        }