public void ShouldNotAcceptShipsBiggerThanTheBoard()
        {
            var subject = new RandomPositioner(_randomGeneratorDouble);

            Action act = () => subject.GeneratePositionsForShip(new DummyShip(Board.Size + 1));

            act.Should().Throw <ArgumentException>().WithMessage("Ship cannot be bigger than the board");
        }
        public void SetUp()
        {
            _randomGeneratorDouble = A.Fake <RandomGenerator>();

            _subject = new RandomPositioner(_randomGeneratorDouble);
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            _randomPositionerDouble = A.Fake <RandomPositioner>();

            _subject = new FleetPositioner(_randomPositionerDouble);
        }