Exemple #1
0
        public void GetNumberOfCardsToAdd_GivenNull_ShouldThrow()
        {
            StandardRuleProvider target = new StandardRuleProvider();
            int numberOfCardsToAdd      = target.GetNumberOfCardsToAdd(null);

            return;
        }
Exemple #2
0
        public void GetNumberOfCardsToAdd_GivenWildDrawFour_ShouldReturnFour()
        {
            StandardRuleProvider target = new StandardRuleProvider();
            int numberOfCardsToAdd      = target.GetNumberOfCardsToAdd(new Card(Color.Wild, Value.WildDrawFour));

            Assert.AreEqual(4, numberOfCardsToAdd);

            return;
        }
Exemple #3
0
        public void GetNumberOfCardsToAdd_GivenDrawTwo_ShouldReturnTwo()
        {
            StandardRuleProvider target = new StandardRuleProvider();
            int numberOfCardsToAdd      = target.GetNumberOfCardsToAdd(new Card(Color.Red, Value.DrawTwo));

            Assert.AreEqual(2, numberOfCardsToAdd);

            return;
        }
Exemple #4
0
        public void GetNumberOfCardsToAdd_GivenRegular_ShouldReturnZero()
        {
            StandardRuleProvider target = new StandardRuleProvider();
            int numberOfCardsToAdd      = target.GetNumberOfCardsToAdd(new Card(Color.Red, Value.Seven));

            Assert.AreEqual(0, numberOfCardsToAdd);

            return;
        }