예제 #1
0
        public void GetCommand_Invalid_Command_Throws(char command)
        {
            var commandsFactory = new RobotCommandsFactory();

            Assert.Throws <ArgumentOutOfRangeException>(() => commandsFactory.GetCommand(command));
        }
예제 #2
0
        public void GetCommand_Should_Success(char command)
        {
            var commandsFactory = new RobotCommandsFactory();

            Assert.NotNull(commandsFactory.GetCommand(command));
        }