public void HeCanBeAddedToCell()
        {
            //Act
            stubCell.PirateComing(pirate);

            //Assert
            stubCell.Pirates.ShouldContain().Exact(pirate);
        }
示例#2
0
        public void HeShouldBeTransferedToShip()
        {
            //Arrange
            var stubCell = new StubCell(4, 4);

            stubCell.PirateComing(black);
            black.Position.ShouldBeEqual(stubCell.Position);

            //Act
            baloonCell.PirateComing(black);

            //Assert
            baloonCell.Pirates.ShouldBeEmpty();
            black.Position.ShouldBeEqual(Black.Ship.Position);
        }