public void Completion_NoMatch_Test() { var completion = new CommandCompletion(_TestCommands); completion.Completion("foo").Is("foo"); completion.Completion("foo").Is("foo"); }
public void Completion_FromEmpty_to_NoMatch_Test() { var completion = new CommandCompletion(_TestCommands); completion.Completion("").Is("banner"); completion.Completion("banner").Is("clear"); completion.Completion("bar").Is("bar"); }
public void Completion_FromEmpty_to_AnotherMatch_Test() { var completion = new CommandCompletion(_TestCommands); completion.Completion("").Is("banner"); completion.Completion("banner").Is("clear"); completion.Completion("fig").Is("figgle"); completion.Completion("figgle").Is("figlet"); completion.Completion("figlet").Is("figgle"); completion.Completion("figgle").Is("figlet"); completion.Completion("he").Is("help"); completion.Completion("help").Is("help"); completion.Completion("").Is("banner"); completion.Completion("banner").Is("clear"); }
public void Completion_FromEmpty_Test() { var completion = new CommandCompletion(this._TestCommands); completion.Completion("").Is("banner"); completion.Completion("banner").Is("clear"); completion.Completion("clear").Is("cls"); completion.Completion("cls").Is("figgle"); completion.Completion("figgle").Is("figlet"); completion.Completion("figlet").Is("help"); completion.Completion("help").Is("banner"); completion.Completion("banner").Is("clear"); }
public void Completion_Match_to_AnotherMatch_Test() { var completion = new CommandCompletion(_TestCommands); completion.Completion("c").Is("clear"); completion.Completion("clear").Is("cls"); completion.Completion("cls").Is("clear"); completion.Completion("he").Is("help"); completion.Completion("help").Is("help"); completion.Completion("").Is("banner"); completion.Completion("banner").Is("clear"); }