예제 #1
0
        public void GivenInvalidCommandLine_GetCommandTypeShouldNotReturnACommandType(string given, CommandTypeInterpreter sut)
        {
            Action actual = () => sut.GetCommandType(given);

            actual.Should().Throw <InvalidCommandException>();
        }
예제 #2
0
        public void GivenValidCommandLine_GetCommandTypeShouldReturnACommandType(string given, CommandType excepted, CommandTypeInterpreter sut)
        {
            var actual = sut.GetCommandType(given);

            actual.Should().Be(excepted);
        }