Beispiel #1
0
        public void CalculateJunctionScoreTilesHigherThan7()
        {
            // Arrange
            int      expected = 1 + 4 + 5;
            Junction junction = new Junction(new List <ITile> {
                new LandTile(new Coordinate(0, 0, EnumCoordinateType.Land), new LandTileType(EnumType.Desert), 12),
                new LandTile(new Coordinate(0, 1, EnumCoordinateType.Land), new LandTileType(EnumType.Desert), 9),
                new LandTile(new Coordinate(1, 0, EnumCoordinateType.Land), new LandTileType(EnumType.Desert), 8)
            });

            // Act
            junction.CalculateScore();
            int actual = junction.Score;

            //Assert
            Assert.Equal(expected, actual);
        }