public void TestMakeStationAction() { gs = new GameState(newyork, map, 2, 1); Player p1 = gs.currentPlayer(); Player p1wCard = p1.addCard(newyork); gs = gs.adjustPlayer(p1wCard); gs = gs.setTurnAction(new DoNothingTurnAction()); SearchEvaluate likesStations = new LikesStations(1); List <Action> foo = gs.availableActions(); Action action = likesStations.bfs_findbest(gs, 1); GameState newGS = action.execute(gs); Assert.AreEqual(0, newGS.players[1].cards.Count); // Assert.AreEqual(0, newGS.players[1].cards.Count); Assert.AreEqual(true, newGS.map.hasStation(newyork)); }
public void TestMakeStationAction() { gs = new GameState(newyork, map, 2, 1); Player p1 = gs.currentPlayer(); Player p1wCard = p1.addCard(newyork); gs = gs.adjustPlayer(p1wCard); gs = gs.setTurnAction(new DoNothingTurnAction()); SearchEvaluate likesStations = new LikesStations(1); List<Action> foo = gs.availableActions(); Action action = likesStations.bfs_findbest(gs, 1); GameState newGS = action.execute(gs); Assert.AreEqual(0, newGS.players[1].cards.Count); // Assert.AreEqual(0, newGS.players[1].cards.Count); Assert.AreEqual(true, newGS.map.hasStation(newyork)); }