public void CardConstructorCorrectlyStoresCardType() { someType = DeckType.Chance; card = new Card(someName, someTask, someType); Assert.AreEqual(someType, card.Type); }
private IEnumerable<ICard> CreateCards() { var goToJailCard = new Card(new GoDirectlyToJailCommand(jailRoster, board)); var collectMoneyCard = new Card(new CollectMoneyCommand(banker, 50)); var cards = new[] { goToJailCard, collectMoneyCard }; return cards; }
public void CardConstructorCorrectlyStoresTask() { card = new Card(someName, someTask, someType); Assert.AreSame(someTask, card.Tasks[0]); }