public void GetValueReturnsValue <T>(T value)
        {
            // Arrange
            IDictionary <string, object> dict = new Dictionary <string, object>()
            {
                { "key", value }
            };

            // Act
            T resultValue = DictionaryExtensions.GetValue <T>(dict, "key");

            // Assert
            Assert.Equal(typeof(T), resultValue.GetType());
            Assert.Equal(value, resultValue);
        }
 public void GetValueThrowsOnNullCollection()
 {
     Assert.ThrowsArgumentNull(() => DictionaryExtensions.GetValue <string>(null, String.Empty), "collection");
 }