public static void RemoveAt()
{
using (SecureString testString = CreateSecureString("abcde"))
{
testString.RemoveAt(3);
AssertEquals("abce", testString);
testString.RemoveAt(3);
AssertEquals("abc", testString);
testString.RemoveAt(0);
AssertEquals("bc", testString);
testString.RemoveAt(1);
AssertEquals("b", testString);
testString.RemoveAt(0);
AssertEquals("", testString);
testString.AppendChar('f');
AssertEquals("f", testString);
testString.AppendChar('g');
AssertEquals("fg", testString);
testString.RemoveAt(0);
AssertEquals("g", testString);
}
}