public static void AppendChar_TooLong_Throws()
{
using (SecureString ss = CreateSecureString(CreateString(ushort.MaxValue + 1)))
{
Assert.Throws<ArgumentOutOfRangeException>("capacity", () => ss.AppendChar('a'));
}
}