public void GetCardsUpFromColumnWithOne() { // Arrange var gameDeck = new Deck(); var gameColumn = new CardColumn(gameDeck, 10); gameColumn.TurnCardUp(gameColumn.Column[5]); // Act List <int> cardsUpList; cardsUpList = gameColumn.GetVisibleCards(); // Assert Assert.AreEqual(cardsUpList.Count, 1); }
public void GetCardsUpWithUpperLimit() { // Arrange var gameDeck = new Deck(); var gameColumn = new CardColumn(gameDeck, 10); for (int i = 0; i < 10; i++) { gameColumn.TurnCardUp(gameColumn.Column[i]); } // Act List <int> cardsUpList; cardsUpList = gameColumn.GetVisibleCards(); // Assert Assert.AreEqual(cardsUpList.Count, 10); }