private void clickUpdate()
 {
     shape();
     particleSystemMidController.setEmissionRateOverTime(Convert.ToInt32(sliderRateOverTime.value));
     foreach (ParticleSystemController particle in particles)
     {
         particle.alterColorOverLifeTime(Support.convertStringColor(colorStart.text), Support.convertStringColor(colorMid.text), Support.convertStringColor(colorEnd.text));
     }
 }
        public IEnumerator particleSystemRateOverTime1000Test()
        {
            int        rate          = 1000;
            GameObject newGameObject = InstantiateGameObjectParticleSystemMidController();

            yield return(null);

            particleSystemMidController = newGameObject.GetComponent <ParticleSystemMidController>();
            particleSystemMidController.setEmissionRateOverTime(rate);
            Assert.AreEqual(rate, particleSystemMidController.particleSystem.emission.rateOverTime.constantMax);
        }