public void WhenProcessingChain_IfChainMatchesAnyMonster_MonsterManagerProcesses() { MonsterManager.DoesMoveMatchAnyCurrentMonsters(Arg.Any <List <IGamePiece> >()).Returns(true); List <IGamePiece> chain = new List <IGamePiece>(); systemUnderTest.Process(chain); MonsterManager.Received().ProcessPlayerMove(Arg.Any <IGamePlayer>(), chain); }
public void Process(List <IGamePiece> i_chain) { if (MonsterManager.DoesMoveMatchAnyCurrentMonsters(i_chain)) { MonsterManager.ProcessPlayerMove(GamePlayer, i_chain); UsePiecesInChain(i_chain); RandomizeGameBoardIfNoMonsterCombosAvailable(); Audio.PlayOneShot(CombatAudioKeys.CHAIN_COMPLETE); } else { MarkPiecesIncorrect(i_chain); Audio.PlayOneShot(CombatAudioKeys.CHAIN_BROKEN); } }