示例#1
0
        public void SetUpInput()
        {
            Tuple <int, int> startPos = new Tuple <int, int>(0, 0);

            _mapper = new InstructionCalc(startPos, Direction.North);

            string       stringRepo = Properties.Resources.input;
            string       line;
            StringReader sr = new StringReader(stringRepo);

            line        = sr.ReadLine();
            _directions = line.Split(',')
                          .Select(x => x.Trim())
                          .Where(x => !string.IsNullOrWhiteSpace(x))
                          .ToList();
        }
示例#2
0
        public void SetUpInput()
        {
            Tuple <int, int> startPos = new Tuple <int, int>(0, 0);

            _mapper = new InstructionCalc(startPos, Direction.North);
        }