public void WhenATextCommandIsSentToTheCommandProcessor(string strCommand, Command expectedCommand) { CommandTextProcessor commandTextProcessor = new CommandTextProcessor(); Command returnCommand = commandTextProcessor.CreateCommandFromText(strCommand); Assert.AreEqual(expectedCommand, returnCommand); }
public void WhenTheCommandIsNullAnExceptionIsThrown() { CommandTextProcessor commandTextProcessor = new CommandTextProcessor(); Assert.ThrowsException <ArgumentNullException>(() => commandTextProcessor.CreateCommandFromText(null)); }