System.Collections.Tests.SortedListTests.IndexOfKey_NullKey_ThrowsArgumentNullException C# (CSharp) Method

IndexOfKey_NullKey_ThrowsArgumentNullException() private method

private IndexOfKey_NullKey_ThrowsArgumentNullException ( ) : void
return void
        public static void IndexOfKey_NullKey_ThrowsArgumentNullException()
        {
            SortedList sortList1 = Helpers.CreateStringSortedList(100);
            Helpers.PerformActionOnAllSortedListWrappers(sortList1, sortList2 =>
            {
                Assert.Throws<ArgumentNullException>("key", () => sortList2.IndexOfKey(null)); // Key is null
            });
        }
SortedListTests