Esempio n. 1
0
        public void Command_ResultsInCorrectOrientation(CommandTestCaseData testCase)
        {
            // arrange
            IRobot robot = new Robot(0, 0, testCase.StartOrientation, fiveByFiveGrid);

            // act
            testCase.Command.Invoke(robot);

            // assert
            Assert.That(robot.Orientation, Is.EqualTo(testCase.ExpectedOrientation));
        }
Esempio n. 2
0
        public void Command_ResultsInCorrectOrientation(CommandTestCaseData testCase)
        {
            // arrange
            IRobot robot = new Robot(0, 0, testCase.StartOrientation, fiveByFiveGrid);

            // act
            testCase.Command.Invoke(robot);

            // assert
            Assert.That(robot.Orientation, Is.EqualTo(testCase.ExpectedOrientation));
        }