public void Remove() { var provider = new FactoryProvider(); var collection = new FactoryCollection <int>(); provider.Add(collection); provider.Remove(collection); Assert.AreEqual(0, provider.Collections.Count); }