System.Collections.Tests.SortedListTests.Item_Set_NullKey_ThrowsArgumentNullException C# (CSharp) Méthode

Item_Set_NullKey_ThrowsArgumentNullException() private méthode

private Item_Set_NullKey_ThrowsArgumentNullException ( ) : void
Résultat void
        public static void Item_Set_NullKey_ThrowsArgumentNullException()
        {
            SortedList sortList1 = Helpers.CreateIntSortedList(100);
            Helpers.PerformActionOnAllSortedListWrappers(sortList1, sortList2 =>
            {
                Assert.Throws<ArgumentNullException>("key", () => sortList2[null] = 101); // Key is null
            });
        }
SortedListTests