public void ExecuteCommand_NonExistingCommand_ReportNonExisting() { var ps = new PluginStub("fire", "in-the-whole"); var result = ps.ExecuteCommand("run", null); Assert.That(result.Status, Is.EqualTo(CommandStatus.Error)); Assert.That(result.HumanReadable, Contains.Substring("Unknown command")); }
public void ExecuteCommand_NonExistingCommandMachingSoundex_ReturnsSuggestion() { var ps = new PluginStub("fire", "in-the-whole"); var result = ps.ExecuteCommand("fir", null); Assert.That(result.Status, Is.EqualTo(CommandStatus.Error)); Assert.That(result.HumanReadable, Contains.Substring("Did you mean")); }