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

Remove_NullKey_ThrowsArgumentNullException() private méthode

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