public void NonGeneric_GeneratesValue()
            {
                var         value      = new object();
                var         key        = "key";
                IDictionary dictionary = new Dictionary <string, object>();
                var         result     = CSrkIDictionaryExtensions.GetValue <object>(dictionary, key, () => value, true);

                Assert.IsTrue(object.ReferenceEquals(result, value));
            }
            public void NonGeneric_ReturnsStoredValue()
            {
                var         value      = new object();
                var         key        = "key";
                IDictionary dictionary = new Dictionary <string, object>();

                dictionary.Add(key, value);
                var result = CSrkIDictionaryExtensions.GetValue <object>(dictionary, key, () => null, true);

                Assert.IsTrue(object.ReferenceEquals(result, value));
            }