Ejemplo n.º 1
0
        public void Returns_E_when_returns_Left_3_times_from_initial_orientations_N()
        {
            var compass = new Compass();

            string endWith = compass.StartWith("N").Turns("LLL");

            Check.That(endWith).IsEqualTo("E");
        }
Ejemplo n.º 2
0
        public void Returns_N_when_instruction_is_LLLRR()
        {
            var compass = new Compass();

            string endWith = compass.StartWith("E").Turns("LLLRR");

            Check.That(endWith).IsEqualTo("N");
        }