Example #1
0
            public void Should_Throw_If_Dictionary_Is_Null()
            {
                // Given
                System.Collections.Generic.IDictionary <string, string> dictionary = null;

                // When
                var result = Record.Exception(() => dictionary.GetValueOrDefault("foo", null));

                // Then
                result.IsArgumentNullException("dictionary");
            }