Ejemplo n.º 1
0
 public void TryPlay_PiecesAreAdjacent_CallMakePlayAndEndPlay()
 {
     bool endedPlay = false;
     int rowOne = 0;
     int colOne = 0;
     int rowTwo = 0;
     int colTwo = 1;
     _mockBoard = _mocks.PartialMock<PokemonBoard>();
     _mockBoard.EndingPlay += delegate { endedPlay = true; };
     _mockBoard.Expect(g => g.makePlay(rowOne, colOne, rowTwo, colTwo));
     _mockBoard.Replay();
     _mockBoard.tryPlay(_pokemonGrid, rowOne, colOne, rowTwo, colTwo);
     _mockBoard.VerifyAllExpectations();
     Assert.IsTrue(endedPlay);
 }