public void AddAndRemove() {
ConfigBase config1 = new ConfigBase("Test", null);
ConfigBase config2 = new ConfigBase("Another", null);
ConfigCollection collection = new ConfigCollection(null);
collection.Add(config1);
collection.Add(config2);
Assert.AreEqual(2, collection.Count);
Assert.IsNotNull(collection["Test"]);
Assert.IsNotNull(collection["Another"]);
collection.Remove(config2);
Assert.AreEqual(1, collection.Count);
Assert.IsNotNull(collection["Test"]);
Assert.IsNull(collection["Another"]);
}