System.Security.Tests.SecureStringTests.RemoveAt_Invalid_Throws C# (CSharp) Метод

RemoveAt_Invalid_Throws() приватный Метод

private RemoveAt_Invalid_Throws ( ) : void
Результат 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));
            }
        }