Example #1
0
        public void AceUpTheSleeve_ShouldBeFiveAces()
        {
            DeckOfCards sut = new DeckOfCards();

            sut.AceUpTheSleeve();
            Assert.AreEqual(sut.GetCards().Count, 53);
            Assert.AreEqual(sut.GetAllCardsByCardName("Ace").Count, 5);
        }
Example #2
0
        public void GetAllCardsByCardName_ShouldBeFourTwos()
        {
            IDeckOfCards deck = new DeckOfCards();
            List <Card>  sut  = deck.GetAllCardsByCardName(ECardName.Two.ToString());

            Assert.AreEqual(sut.Count, 4);
            Assert.AreEqual(sut[0].GetName().GetValue(), "Two");
        }