public void UpdateToken_SecondLevelEvolution_Total210Points() { int pointsAdded = 0; int row = 3; int col = 4; _pokemonGrid[row, col] = new FeraligatorToken(); _pokemonBoard.PokemonGrid = _pokemonGrid; _pokemonBoard.PointsAdded += delegate(object sender, PointsAddedEventArgs e) { pointsAdded += e.Points; }; _pokemonBoard.updateToken(row, col); Assert.AreEqual(210, pointsAdded); }
public void EvolveToken_RowOfSix_TokenReplacedWithSecondEvolution() { _pokemonGrid[0, 0] = new TotodileToken(); _pokemonBoard.PokemonGrid = _pokemonGrid; _pokemonGrid[0, 0] = new FeraligatorToken(); _pokemonBoard.evolveToken(0, 0, 6); Assert.AreEqual(_pokemonGrid[0, 0], _pokemonBoard.NewPokemonGrid[0, 0]); }
public void UpdateToken_SecondLevelEvolution_CallMarkFullRowAndColumnNull() { int row = 3; int col = 4; _pokemonGrid[row, col] = new FeraligatorToken(); _mockBoard.PokemonGrid = _pokemonGrid; _mockBoard.Expect(g => g.markFullRowAndColumnAsNull(row, col)); _mockBoard.Replay(); _mockBoard.updateToken(row, col); _mockBoard.VerifyAllExpectations(); }