Exemplo n.º 1
0
        public void GetCardsUpFromColumnWithNone_NotNull()
        {
            // Arrange
            var gameDeck   = new Deck();
            var gameColumn = new CardColumn(gameDeck, 10);

            // Act
            List <int> cardsUpList;

            cardsUpList = gameColumn.GetVisibleCards();

            // Assert
            Assert.IsNotNull(cardsUpList);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }