private bool TestEscapeChar(char input, int position, CharDescriptor charDex)
{
// Test literals first. See VSW#454461.
// If the position holds a literal, it is escaped only if the input is the same as the literal independently on
// the input value (space, prompt,...).
if (IsLiteralPosition(charDex))
{
return SkipLiterals && input == _testString[position];
}
if ((ResetOnPrompt && (input == _promptChar)) || (ResetOnSpace && (input == spaceChar)))
{
return true;
}
return false;
}