public void Setup() { player = PlayerUTests.CreateTestPlayer(); cardUnit = CardUnitUTests.CreateTestCardUnit(); cardBuilding = CardBuildingUTests.CreateTestCardBuilding(); cardResource = CardResourceUTests.CreateTestFoodCardResource(); }
// Create test card resource display public static CardResourceDisplay CreateTestCardResourceDisplay() { CardResource cardResource = CardResourceUTests.CreateTestFoodCardResource(); CardResourceDisplay cardResourceDisplay = CardResourceDisplayUTests.CreateTestCardResourceDisplay(); cardResourceDisplay.SetCard(cardResource); return(cardResourceDisplay); }
public void AddsMultipleCardResourceToHand() { for (int i = 0; i < 5; i++) { player.AddCard(cardResource); cardResource = CardResourceUTests.CreateTestFoodCardResource(); } Assert.AreEqual(5, player.GetResourceCount(ResourceType.Food)); }
public void Setup() { player = PlayerUTests.CreateTestPlayer(); foodResourceCard = CardResourceUTests.CreateTestFoodCardResource(); }