private IList <ResourceType> BorrowResourceFromNeighbor(IGamePlayer neighbor, IList <ResourceType> resources) { if (!resources.Any()) { return(new List <ResourceType>()); } return(neighbor.CheckResourceAvailability(resources, true)); }
public void CheckResourceAvailabilityTest() { AddCards("CheckResourceAvailability"); player.SetWonder(new MausoleumWonder(WonderBoardSide.A)); var neededResources = new List <ResourceType>(); neededResources.Add(ResourceType.Stone); neededResources.Add(ResourceType.Stone); neededResources.Add(ResourceType.Clay); neededResources.Add(ResourceType.Clay); neededResources.Add(ResourceType.Glass); neededResources.Add(ResourceType.Papyrus); var result = player.CheckResourceAvailability(neededResources, false); Assert.IsFalse(result.Any()); }