public void then_should_replace_without_throwing()
        {
            ResourceDictionary dictionary = new ResourceDictionary();

            keyedDictionary.Add("testResources", dictionary, false);
            Assert.AreSame(dictionary, keyedDictionary.Get("testResources"));
        }
        public void then_dictionary_is_strongly_held()
        {
            var testResource = new WeakReference(keyedDictionary.Get("testResources"));

            GC.Collect();
            Assert.IsTrue(testResource.IsAlive);
        }
 public void then_can_retrieve_added_dictionary_by_name()
 {
     Assert.IsNotNull(keyedDictionary.Get("testResources"));
 }
 public void then_throws_on_invalid_key()
 {
     keyedDictionairy.Get("notAKeyItem");
 }