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)); }
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); }
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); }