Ejemplo n.º 1
0
        private InstructionsParser GetInstructionsParser()
        {
            if (_instructionsParser == null)
            {
                _instructionsParser = new InstructionsParser()
                {
                    InstructionDefinitions = new List<Instruction>
                    {
                        new Instruction("F", 1),
                        new Instruction("R", 0, 90),
                        new Instruction("L", 0, -90)
                    }
                };
            }

            return _instructionsParser;
        }
 public void Setup()
 {
     _sut = new InstructionsParser();
 }