public void ThenUnknownIsReturned() { var result = InputToUserCommandConverter.Convert("badInput"); Assert.AreEqual(UserCommand.Unknown, result); }
public void AndTheInputIsNullThenAnExceptionIsThrown() { Assert.Throws <ArgumentNullException>(() => InputToUserCommandConverter.Convert(null)); }
public void AndTheInputIs2ThenQuitIsReturned() { var result = InputToUserCommandConverter.Convert("2"); Assert.AreEqual(UserCommand.Quit, result); }
public void AndTheInputIs1ThenAddTaskIsReturned() { var result = InputToUserCommandConverter.Convert("1"); Assert.AreEqual(UserCommand.AddTask, result); }
public void AndTheInputIsQuitThenQuitIsReturned(string quit) { var result = InputToUserCommandConverter.Convert(quit); Assert.AreEqual(UserCommand.Quit, result); }
public void AndTheInputIsAddThenAddTaskIsReturned(string add) { var result = InputToUserCommandConverter.Convert(add); Assert.AreEqual(UserCommand.AddTask, result); }
public void AndTheInputIsEmptyThenUnknownIsReturned() { var result = InputToUserCommandConverter.Convert(string.Empty); Assert.AreEqual(UserCommand.Unknown, result); }