System.Security.Tests.SecureStringTests.RemoveAt_Invalid_Throws C# (CSharp) Method

RemoveAt_Invalid_Throws() private method

private RemoveAt_Invalid_Throws ( ) : void
return void
        public static void RemoveAt_Invalid_Throws()
        {
            using (SecureString testString = CreateSecureString("test"))
            {
                Assert.Throws<ArgumentOutOfRangeException>("index", () => testString.RemoveAt(-1));
                Assert.Throws<ArgumentOutOfRangeException>("index", () => testString.RemoveAt(testString.Length));
                Assert.Throws<ArgumentOutOfRangeException>("index", () => testString.RemoveAt(testString.Length + 1));
            }
        }