System.Tests.StringTests.Ctor_Char_Int_Negative_Count_ThrowsArgumentOutOfRangeException C# (CSharp) Method

Ctor_Char_Int_Negative_Count_ThrowsArgumentOutOfRangeException() private method

        public static void Ctor_Char_Int_Negative_Count_ThrowsArgumentOutOfRangeException()
        {
            Assert.Throws<ArgumentOutOfRangeException>("count", () => new string('a', -1)); // Count < 0
        }
StringTests