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

Ctor_IComparer_Int_NegativeInitialCapacity_ThrowsArgumentOutOfRangeException() private méthode

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