public void CanUseWharf() { var player = GetPlayerWithoutPrivilege(); var wharf = new Wharf(); wharf.AddWorker(new Colonist()); player.Buildings.Add(wharf); var goodCount = 9; for (var i = 0; i < goodCount; i++) { player.Goods.Add(new Indigo()); } ReselectRole(); var useWharf = new UseWharf { GoodType = GoodType.Indigo }; CanExecuteActionOnce(useWharf, player); Assert.Empty(player.Goods); Assert.Equal(goodCount, player.VictoryPointChips.Count); }
public void CanSkipWharf() { var wharf = new Wharf(); wharf.AddWorker(new Colonist()); RoleOwner.Buildings.Add(wharf); RoleOwner.Goods.Add(new Coffee()); Game.CargoShips[0].Load(new List <IGood> { new Corn() }); Game.CargoShips[1].Load(new List <IGood> { new Sugar() }); Game.CargoShips[2].Load(new List <IGood> { new Indigo() }); ReselectRole(); var action = new EndPhase(); CanExecuteActionMultiple(action, RoleOwner); CanExecuteActionOnce(action, RoleOwner); }