Example #1
0
        public void SuitStrategy_AllEqual_NotASnap()
        {
            //Arrange
            var strategy = new SuitStrategy();
            var card     = new Card(SuitEnum.Heart, FaceValueEnum.Ace);

            //Act
            var result = strategy.Snap(card, card);

            //Assert
            Assert.True(result);
        }
Example #2
0
        public void SuitStrategy_FaceValueEqualSuitDifferent_NotASnap()
        {
            //Arrange
            var strategy = new SuitStrategy();
            var card1    = new Card(SuitEnum.Heart, FaceValueEnum.Ace);
            var card2    = new Card(SuitEnum.Spade, FaceValueEnum.Ace);

            //Act
            var result = strategy.Snap(card1, card2);

            //Assert
            Assert.False(result);
        }