Exemple #1
0
        public void ReportTest_ArgumentNullException_1()
        {
            ToyRobotReportingService reportingService = new ToyRobotReportingService();
            Robot robot = null;

            reportingService.Report(robot);
        }
Exemple #2
0
        public void ReportTest()
        {
            ToyRobotReportingService reportingService = new ToyRobotReportingService();
            Robot    robot    = new Robot();
            Position position = new Position(3, 3);
            Facing   facing   = Facing.NORTH;

            robot.Position = position;
            robot.Facing   = facing;

            string result = reportingService.Report(robot);

            Assert.AreEqual("Output: 3,3,NORTH", result);
        }