public void EnsureSecureStringsAreNotTabCompletable()
{
ConsoleProvider.Current = new TestConsoleProvider("-pa\t");
try
{
var parsed = Args.Parse<TestArgsWithSecureStringArgument>("$");
}
catch(UnexpectedArgException ex)
{
// if we see 'pa' as the argument then we know that the tab completion system did not expand 'pa' to 'password'
Assert.AreEqual("Unexpected named argument: pa", ex.Message);
}
}