Ejemplo n.º 1
0
        public void CheckActionShowEnemyShouldCall()
        {
            int idEnemy = 0;

            controllerMock.Setup(s => s.ShowEnemy(It.IsAny <int>()))
            .Callback <int>((i) => idEnemy = i);
            string[] command = new string[] { "check", "enemy", "1" };
            action.RespondToInput(controllerMock.Object, command);
            Assert.Equal(1, idEnemy);
        }