System.Text.Tests.StringBuilderTests.Ctor_String_Int_NegativeCapacity_ThrowsArgumentOutOfRangeException C# (CSharp) Method

Ctor_String_Int_NegativeCapacity_ThrowsArgumentOutOfRangeException() private method

        public static void Ctor_String_Int_NegativeCapacity_ThrowsArgumentOutOfRangeException()
        {
            Assert.Throws<ArgumentOutOfRangeException>("capacity", () => new StringBuilder("", -1)); // Capacity < 0
        }
StringBuilderTests