public void RemoveCanBeUsedToUnregister()
 {
     var dictionary = new ModelBinderDictionary(new DefaultModelBinder());
     dictionary.Add(typeof(DataSet), FakeBinder);
     dictionary.Remove(FakeBinder);
     dictionary.Add(typeof(DataSet), FakeBinder);
     dictionary.Remove(FakeBinder);
     dictionary.Add(typeof(DataSet), FakeBinder);
 }
        public void ContainsCanBeUsedToCheckForPriorRegistration()
        {
            var dictionary = new ModelBinderDictionary(new DefaultModelBinder());
            Assert.IsFalse(dictionary.Contains(FakeBinder));

            dictionary.Add(typeof(DataSet), FakeBinder);
            Assert.IsTrue(dictionary.Contains(FakeBinder));

            dictionary.Remove(FakeBinder);
            Assert.IsFalse(dictionary.Contains(FakeBinder));
        }