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); }
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); }