コード例 #1
0
ファイル: DeckTest.cs プロジェクト: HanNguyen-dev/P2
        public void Test_Draw()
        {
            var deck = new DDeck(0, new List <DCard>());

            deck.Initialize();

            var card = deck.Draw();

            Assert.True(card.Value > 1);
        }
コード例 #2
0
ファイル: SeatTest.cs プロジェクト: HanNguyen-dev/P2
        public List <DCard> DrawCards(int amount)
        {
            var          deck        = new DDeck(0, new List <DCard>());
            List <DCard> returnValue = new List <DCard>();

            deck.Initialize();

            for (int i = 0; i < amount; i++)
            {
                returnValue.Add(deck.Draw());
            }

            return(returnValue);
        }