コード例 #1
0
        public void Test_EngineGameOverMethodShoudlCallRendererShowGameOver()
        {
            var mockedRenderer = new Mock<IRenderer>();
            var mockedDamageHandler = new Mock<ICellDamageHandler>();

            var engine = new Engine(mockedRenderer.Object, mockedDamageHandler.Object);
            engine.GameOver();
            mockedRenderer.Verify(x => x.ShowGameOver(It.IsAny<GameData>()), Times.Once());
        }