public void StartTurnSequenceTest() { var target = new AlCabohneGame(players); target.StartGame(); var actual = target.StartTurnSequence(players[0]); Assert.AreEqual(target.GameIsOngoing, actual); }
static void Main() { //Start a Bohnanza game var players = new List<Player> {new BohnanzaPlayer("Henkie"), new BohnanzaPlayer("Pietje")}; //Start a new game with Bohnanza as strategy IGameBehaviour gameBehaviour = new BohnanzaGame(players); gameBehaviour.StartGame(); //Start a Al Cabohne game players = new List<Player> {new AlCabohnePlayer("Jaapie"), new AlCabohnePlayer("Vincent")}; //Start a new game with Cabohne as strategy gameBehaviour = new AlCabohneGame(players); gameBehaviour.StartGame(); }
public void AlCabohneGameConstructorTest() { var target = new AlCabohneGame(players); Assert.IsInstanceOfType(target, typeof(AlCabohneGame)); }