Esempio n. 1
0
        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);
        }
Esempio n. 3
0
 public void Effective(MoveEfficiency effect, PokemonWrapper target)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public void RaiseMoveEffectiveEvent(MoveEfficiency effect)
 {
     MoveEffective(this, new MoveEffectiveEventArgs(effect, pokemon));
 }
 public MoveEffectiveEventArgs(MoveEfficiency effect, PokemonWrapper target)
 {
     Effect = effect;
     Target = target;
 }
Esempio n. 6
0
 public void Effective(MoveEfficiency effect, PokemonWrapper target)
 {
     MoveEffective(this, new MoveEffectiveEventArgs(effect, target));
 }