public void TryGetValueWithNullKey()
        {
            var storage = new DictionaryHistory <string, string>();

            string result;
            var    success = storage.TryGetValue(null, out result);

            Assert.IsFalse(success);
            Assert.AreEqual(null, result);
        }
        public void TryGetValueWithUnknownValue()
        {
            var storage = new DictionaryHistory <int, int>();

            int key   = 5;
            int value = 10;

            storage.Add(key, value);

            int result;
            var success = storage.TryGetValue(value, out result);

            Assert.IsFalse(success);
            Assert.AreEqual(0, result);
        }
        public void TryGetValueWithExistingValue()
        {
            var storage = new DictionaryHistory <int, int>();

            int key   = 5;
            int value = 10;

            storage.Add(key, value);

            int result;
            var success = storage.TryGetValue(key, out result);

            Assert.IsTrue(success);
            Assert.AreEqual(value, result);
        }