Esempio n. 1
0
        public void ShouldEquate_RedCards()
        {
            //assign
            ICard card1 = new RedCard();
            ICard card2 = new RedCard();
            //act
            bool matches = card1.Matches(card2);

            //assert
            matches.Should().BeTrue();
        }
Esempio n. 2
0
        public void ShouldNotEquate_Red_Green()
        {
            //assign
            ICard greenCard = new GreenCard();
            ICard redCard   = new RedCard();
            //act
            bool matches = redCard.Matches(greenCard);

            //assert
            matches.Should().BeFalse();
        }
Esempio n. 3
0
        public void ShouldNotEquate_Red_White()
        {
            //assign
            ICard redCard   = new RedCard();
            ICard whiteCard = new WhiteCard();
            //act
            bool matches = redCard.Matches(whiteCard);

            //assert
            matches.Should().BeFalse();
        }
Esempio n. 4
0
        public void ShouldNotEquate_Red_Blue()
        {
            //assign
            ICard redCard  = new RedCard();
            ICard blueCard = new BlueCard();
            //act
            bool matches = redCard.Matches(blueCard);

            //assert
            matches.Should().BeFalse();
        }