public void PutGoalTest(AbstractField field, List <AbstractPiece> pieces, List <PutEvent> expectedEvents) { // Arrange // Act & Assert for (int i = 0; i < pieces.Count; ++i) { PutEvent result = field.Put(pieces[i]).putEvent; Assert.Equal(expectedEvents[i], result); } }
private void PutNormalOnNonGoal(AbstractPiece piece, AbstractField position) { _returnedEnum = PutResultEnum.NormalOnNonGoalField; position.Put(piece); }
private void PutNonShamOnGoal(AbstractPiece piece, AbstractField position, Map map) { map.ScorePoint(position, _agentId); _returnedEnum = PutResultEnum.NormalOnGoalField; position.Put(piece); }
private void PutPieceOutsideGoalArea(AbstractPiece piece, AbstractField position) { _returnedEnum = PutResultEnum.TaskField; position.Put(piece); }
public (PutEvent putEvent, bool wasPieceRemoved) Put(AbstractField field) { return(field.Put(this)); }