Esempio n. 1
0
        public void AddBattleShipTest()
        {
            // Arrange
            var expected = true;

            System.Drawing.Point startCoordinate = new System.Drawing.Point(1, 1);
            System.Drawing.Point endCoordinate   = new System.Drawing.Point(1, 2);
            string board = "A";
            // Act
            var output = subject.AddBattleShip(startCoordinate, endCoordinate, board);

            // Assert
            output.ShouldBe(expected);
            subject.BoardAState.Panels.Where(panel => panel.IsOccupied).Count().ShouldBe(2);
        }