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

Ctor_Int_NegativeInitialCapacity_ThrowsArgumentOutOfRangeException() private méthode

        public static void Ctor_Int_NegativeInitialCapacity_ThrowsArgumentOutOfRangeException()
        {
            Assert.Throws<ArgumentOutOfRangeException>("initialCapacity", () => new SortedList(-1)); // InitialCapacity < 0
        }
SortedListTests