Esempio n. 1
0
        public void TestReportCommand()
        {
            var rover = new Rover();

            rover.Stand(new Point(1, 1), Direction.NORTH);

            var cmd = new ReportCommand(rover);

            Assert.IsTrue(cmd.Validate());

            cmd.Execute();

            Assert.AreEqual(cmd.Result.Item1.X, 1);
            Assert.AreEqual(cmd.Result.Item1.Y, 1);
            Assert.AreEqual(cmd.Result.Item2, Direction.NORTH);
        }