public void Should_print_robots_positions() { var robotsToDeploy = new List <IRobot> { new Robot(new Compass()) { Position = new RobotPosition { Location = new ArenaCoordinates() { X = 1, Y = 2 }, Heading = CompassPoint.N } } }; battleArena.DeployRobots(robotsToDeploy); battleArena.PrintRobotsPositions(); consoleMock.Verify(c => c.WriteLine(It.Is <string>(t => t.Equals(">>> Competition result"))), Times.Exactly(1)); consoleMock.Verify(c => c.WriteLine(It.Is <string>(t => t.Equals(">>> Robots positions:"))), Times.Exactly(1)); consoleMock.Verify(c => c.WriteLine(It.Is <string>(t => t.Equals(">>> Robot # {0}: {1} {2} {3}")), It.Is <int>(id => id == 0), It.Is <int>(x => x == 1), It.Is <int>(y => y == 2), It.Is <CompassPoint>(p => p == CompassPoint.N)), Times.Exactly(1)); }
public void VisualizeCompetitionResults() { _battleArena.PrintRobotsPositions(); }