public void ThenARandomPlacementIsSelected() { var ship = new TestShip(); _grid.PlaceShipAtRandom(ship); _randomPlacementSelector.Received(1).Select(_grid.Squares, ship.Size); }
public void ThenTheShipOccupiesTheSquares() { var ship = new TestShip(); _grid.PlaceShipAtRandom(ship); Assert.Same(_squarePlacement, ship.SquarePlacement); }
public void ThenShipIsAddedToGrid() { var ship = new TestShip(); _grid.PlaceShipAtRandom(ship); Assert.Contains(ship, _grid.Ships); }