public void op_Remove_NameValueConfigurationElement_whenEmpty()
        {
            var element = new NameValueConfigurationElement <DirectoryInfo>("C", new DirectoryInfo(@"C:\"));
            var obj     = new AddRemoveClearConfigurationElementCollection <DirectoryInfo>();

            Assert.False(obj.Remove(element));
        }
        public void op_Remove_NameValueConfigurationElement()
        {
            var element = new NameValueConfigurationElement <DirectoryInfo>("C", new DirectoryInfo(@"C:\"));
            var obj     = new AddRemoveClearConfigurationElementCollection <DirectoryInfo>
            {
                new NameValueConfigurationElement <DirectoryInfo>("D", new DirectoryInfo(@"D:\")),
                element
            };

            Assert.True(obj.Remove(element));
            Assert.False(obj.Contains(element));
        }