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

PadLeft_NegativeTotalWidth_ThrowsArgumentOutOfRangeException() private method

        public static void PadLeft_NegativeTotalWidth_ThrowsArgumentOutOfRangeException()
        {
            Assert.Throws<ArgumentOutOfRangeException>("totalWidth", () => "".PadLeft(-1, '.'));
        }
StringTests