示例#1
0
        public void PlayerAttackShouldReturnCard()
        {
            //Arrange
            //Act
            Card actualCard = _player.Attack(CardList);

            StrategyMock.Verify(x => x.Attack(It.IsAny <List <Card> >(), CardList), Times.Exactly(1));
            //Assert
            Assert.AreEqual(ExpectedCard, actualCard);
        }
示例#2
0
        public void PlayerDefendShouldReturnCard()
        {
            //Arrange
            //Act
            Card actualCard = _player.Defend(CardList, ExpectedCard);

            StrategyMock.Verify(x => x.Defend(It.IsAny <List <Card> >(), It.IsAny <List <Card> >(), It.IsAny <Card>()), Times.Exactly(1));
            //Assert
            Assert.IsNotNull(actualCard);
            Assert.AreEqual(ExpectedCard, actualCard);
        }