Example user SFTP interface compares incorrect strings
Brought to you by:
daviddaltry,
thunderbirduser
In SshFileTransferTest the user options read mixed case text, check against lowercase but then return the mixed case before deciding what to do against lower case.
Suggest changing GetProtocol and GetTransferDirection to return the lowercase version:
public static string GetTransferDirection()
{
string dir;
while (true)
{
Console.Write("Enter transfer direction [To|From]: ");
dir = Console.ReadLine().ToLower();
if (dir.Equals(string.Empty)) break;
if (dir.Equals("to") || dir.Equals("from"))
break;
Console.Write("Bad input, ");
}
return dir;
}