示例#1
0
        public void FaceStrategy_AllEqual_NotASnap()
        {
            //Arrange
            var strategy = new FaceStrategy();
            var card     = new Card(SuitEnum.Heart, FaceValueEnum.Ace);

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

            //Assert
            Assert.True(result);
        }
示例#2
0
        public void FaceStrategy_FaceValueEqualSuitDifferent_NotASnap()
        {
            //Arrange
            var strategy = new FaceStrategy();
            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.True(result);
        }