public void ExecuteTest() { var command = new DeployExplorerCommand(new Position(5, 5), Heading.North); IDeploymentZoneChart deploymentZoneChart = new Plateau { Size = new Size(5, 5) }; command.SetExplorer(new Rover(new ExplorationTeam(deploymentZoneChart))); Assert.IsTrue(command.Execute()); }
public void ExecuteTest_NoExplorerSet() { var command = new DeployExplorerCommand(new Position(5, 5), Heading.North); Assert.IsFalse(command.Execute()); }
public void SetExplorerTest() { var command = new DeployExplorerCommand(new Position(1, 1), Heading.East); command.SetExplorer(null); }
public void DeployExplorerCommandTest() { var deployExplorerCommand = new DeployExplorerCommand(null, Heading.East); }