public void ShouldUpdateScoreText() { scoreManager.AttachScoreText(scoreText); List <IBlock> blockList = CreateBlockListMock(); scoreManager.OnDeleteBlocks(blockList, 1); scoreText.Received().UpdateText(Arg.Any <string>()); }
void CreateScoreManager(IGameText scoreText) { if (_scoreManager != null) { RemoveOnDeleteEventListener(_scoreManager); } _scoreManager = new ScoreManager(); if (scoreText != null) { _scoreManager.AttachScoreText(scoreText); } AddOnDeleteEventListener(_scoreManager); }
void CreateScoreManager(IGameText scoreText) { if(_scoreManager != null) { RemoveOnDeleteEventListener(_scoreManager); } _scoreManager = new ScoreManager(); if (scoreText != null) { _scoreManager.AttachScoreText(scoreText); } AddOnDeleteEventListener(_scoreManager); }