public void NullDictionary_Get()
        {
            IDictionary dictionary = new NullDictionary();

            dictionary ["a"] = "b";
            Assert.AreEqual("b", dictionary ["a"]);
        }
        public void Test_DictionaryMerge()
        {
            var nd = new NullDictionary <string, int?>(StringComparer.Ordinal)
            {
                { "One", 1 },
                { "two", 22 }
            };

            var d = new Dictionary <string, int?>()
            {
                { "Two", 2 },
                { "Three", 3 }
            };

            nd.MergeDictionary(d, DictionaryMergeOptions.OverwriteDuplicateKey);

            return;
        }
Beispiel #3
0
		public void NullDictionary_Get ()
		{
			IDictionary dictionary = new NullDictionary ();
			dictionary ["a"] = "b";
			Assert.AreEqual ("b", dictionary ["a"]);
		}