public void RemoveKey()
        {
            var dictionary = new Xunit.Sdk.MultiValueDictionary<string, string>();
            dictionary.AddValue("Key", "Value");

            dictionary.Remove("Key");

            Assert.DoesNotContain("Key", dictionary.Keys);
        }
Exemple #2
0
        public void RemoveKey()
        {
            var dictionary = new Xunit.Sdk.MultiValueDictionary <string, string>();

            dictionary.AddValue("Key", "Value");

            dictionary.Remove("Key");

            Assert.DoesNotContain("Key", dictionary.Keys);
        }
Exemple #3
0
        public void RemoveKeyForUnknownKeyDoesNotThrow()
        {
            var dictionary = new Xunit.Sdk.MultiValueDictionary <string, string>();

            Assert.DoesNotThrow(() => dictionary.Remove("Key"));
        }
        public void RemoveKeyForUnknownKeyDoesNotThrow()
        {
            var dictionary = new Xunit.Sdk.MultiValueDictionary<string, string>();

            Assert.DoesNotThrow(() => dictionary.Remove("Key"));
        }