public void SetUp() { this.gameBoardViewModel = new GameBoardViewModel(new GameBoard(new FieldListFactory(), 4)); this.gameBoardViewModel.Loaded(); this.performMove = new PerformMove(this.gameBoardViewModel); this.SetBoardPrecondition(); }
public void TwoAdvokatTokenArePlacedOnTheOppositeCornerFields() { this.testee = new GameBoardViewModel(new GameBoard(new FieldListFactory(), 2)); this.testee.Loaded(); this.VerifyPresenceOfAdvokatToken(this.testee.FieldViewModels, 0, 0, Colors.Red); this.VerifyPresenceOfAdvokatToken(this.testee.FieldViewModels, 7, 7, Colors.Blue); }
public void ThreeAdvokatTokenArePlacedInTheRightFields() { this.testee = new GameBoardViewModel(new GameBoard(new FieldListFactory(), 3)); this.testee.Loaded(); this.VerifyPresenceOfAdvokatToken(this.testee.FieldViewModels, 0, 0, Colors.Red); this.VerifyPresenceOfAdvokatToken(this.testee.FieldViewModels, 0, 7, Colors.Green); this.VerifyPresenceOfAdvokatToken(this.testee.FieldViewModels, 7, 7, Colors.Blue); }
public void Setup() { this.gameboard = A.Fake<IGameBoard>(); this.testee = new GameBoardViewModel(this.gameboard); }
public PerformMove(GameBoardViewModel gameBoardViewModel) { this.gameBoardViewModel = gameBoardViewModel; }
public void SetUp() { this.testee = new GameBoardViewModel(new GameBoard(new FieldListFactory(), 4)); this.testee.Loaded(); }