public void GivenInvalidCommandLine_GetCommandTypeShouldNotReturnACommandType(string given, CommandTypeInterpreter sut) { Action actual = () => sut.GetCommandType(given); actual.Should().Throw <InvalidCommandException>(); }
public void GivenValidCommandLine_GetCommandTypeShouldReturnACommandType(string given, CommandType excepted, CommandTypeInterpreter sut) { var actual = sut.GetCommandType(given); actual.Should().Be(excepted); }