示例#1
0
        public void TopCardDrawnOnInfectionDrawSimplePasses()
        {
            deck.Start();
            int           count = deck.getInfectionDeck().Count;
            InfectionCard peek  = deck.getInfectionDeck().Peek();
            InfectionCard drawn = deck.drawInfectionCard();

            Assert.AreEqual(peek.getId(), drawn.getId());
            Assert.AreEqual(count - 1, deck.getInfectionDeck().Count);
        }
示例#2
0
        public IEnumerator TopCardDrawnOnInfectionDrawWithEnumeratorPasses()
        {
            InfectionDeck deck = GameObject.Find("InfectionDeck").GetComponent <InfectionDeck>();

            // Use the Assert class to test conditions.
            // Use yield to skip a frame.
            yield return(null);

            InfectionCard peek  = deck.getInfectionDeck().Peek();
            InfectionCard drawn = deck.drawInfectionCard();

            Assert.AreEqual(peek.getId(), drawn.getId());
        }