public void ExecuteMove_MoveEffective_EventCreatorEffectivCalled(float modifier, MoveEfficiency expected) { var executer = CreateExecuter(); factory.CreateAllPokemon(); ExecuteMoveCommand(executer, typeModifier: modifier); creatorMock.Verify(c => c.Effective(expected, It.IsAny<PokemonWrapper>()), Times.Once); }
public void HandleMoveEffectiveEvent_AfterDispatchedEvent_GUIMessageIsSent(MoveEfficiency efficient) { CreateEventProcessor(); eventMock.RaiseMoveEffectiveEvent(efficient); eventQueue.DispatchAllEvents(); guiMock.Verify(o => o.SetText(It.IsAny<string>()), Times.Once); }
public void Effective(MoveEfficiency effect, PokemonWrapper target) { throw new NotImplementedException(); }
public void RaiseMoveEffectiveEvent(MoveEfficiency effect) { MoveEffective(this, new MoveEffectiveEventArgs(effect, pokemon)); }
public MoveEffectiveEventArgs(MoveEfficiency effect, PokemonWrapper target) { Effect = effect; Target = target; }
public void Effective(MoveEfficiency effect, PokemonWrapper target) { MoveEffective(this, new MoveEffectiveEventArgs(effect, target)); }