예제 #1
0
        public void ReturnsValidationResults()
        {
            //Arrange
            var canWin     = new CanWin_AtFoolsLanding();
            var islandTile = new IslandTile();
            List <TreasureCard> treasureCards = new List <TreasureCard>();

            //Act
            var result = canWin.CanWin(islandTile, treasureCards);

            //Assert
            Assert.IsInstanceOfType(result, typeof(ValidationResults));
        }
예제 #2
0
        public void TileIsHelicopterSite()
        {
            //Arrange
            var canWin     = new CanWin_AtFoolsLanding();
            var islandTile = new IslandTile();

            islandTile.HelicopterSite = true;
            List <TreasureCard> treasureCards = new List <TreasureCard>();

            //Act
            var result = canWin.CanWin(islandTile, treasureCards);

            //Assert
            Assert.AreEqual(result.IsValid, true);
        }
예제 #3
0
        public void TileIsNotHelicopterSite()
        {
            //Arrange
            var canWin     = new CanWin_AtFoolsLanding();
            var islandTile = new IslandTile();

            islandTile.HelicopterSite = false;
            List <TreasureCard> treasureCards = new List <TreasureCard>();

            //Act
            var result = canWin.CanWin(islandTile, treasureCards);

            //Assert
            Assert.AreEqual(result.IsValid, false);
            Assert.AreEqual(result.ErrorMessage, CanWinConstants.NOT_FOOLS_LANDING);
        }