Example #1
0
        public void op_Remove_NameValueConfigurationElement_whenEmpty()
        {
            var element = new RedirectionConfigurationElement <AbsoluteUri>("http://example.com/", "http://example.net/");
            var obj     = new RedirectionConfigurationElementCollection <AbsoluteUri>();

            Assert.False(obj.Remove(element));
        }
Example #2
0
        public void op_Remove_NameValueConfigurationElement()
        {
            var element = new RedirectionConfigurationElement <AbsoluteUri>("http://example.com/", "http://example.net/");
            var obj     = new RedirectionConfigurationElementCollection <AbsoluteUri>
            {
                new RedirectionConfigurationElement <AbsoluteUri>("http://example.org/", "http://example.co.uk/"),
                element
            };

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