コード例 #1
0
        public void MinCardAmount_MoreThanLimit_Passes()
        {
            MinCardAmount maxCardRule = new MinCardAmount()
            {
                RuleName  = RuleName,
                CardName  = CardName,
                MaxAmount = CardLimit - 1
            };

            List <Card> deck = buildDeck();

            Assert.IsTrue(maxCardRule.isDeckValid(deck));
        }
コード例 #2
0
        public void MinCardAmount_LessThanLimit_Fails()
        {
            MinCardAmount maxCardRule = new MinCardAmount()
            {
                RuleName  = RuleName,
                CardName  = CardName,
                MaxAmount = CardLimit + 1
            };

            List <Card> deck = buildDeck();

            Assert.IsFalse(maxCardRule.isDeckValid(deck));
        }