public IEnumerator CollidingWithPowerupIncreasesSpeed()
        {
            pacman.transform.position = powerup.transform.position;
            yield return(new WaitForSeconds(WAIT_TIME));

            Assert.AreEqual(pacmanMovement.GetBoostSpeed(), pacmanMovement.GetSpeed());
        }
        public IEnumerator PacmanSpeedIsBoostedWhenHittingAPowerup()
        {
            Powerup powerup = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Tests/Prefabs/Pickups/Powerup")).GetComponent <Powerup>();

            pacman.transform.position = powerup.transform.position;

            yield return(new WaitForSeconds(0.05f));

            Assert.AreEqual(pacmanMovement.GetBoostSpeed(), pacmanMovement.GetSpeed());
            yield return(new WaitForSeconds(Constants.POWERUP_DURATION));

            Assert.AreEqual(pacmanMovement.GetOriginalSpeed(), pacmanMovement.GetSpeed());

            Object.Destroy(powerup.gameObject);
        }