Particle3DEmitterTests TooManyParticlesThrowsError Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Particles.Tests
Assembly: DeltaEngine.Rendering3D.Particles.Tests (in DeltaEngine.Rendering3D.Particles.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void TooManyParticlesThrowsError()
Examples

[Test, CloseAfterFirstFrame]
public void TooManyParticlesThrowsError()
{
    var emitterData = GetEmitterData(spark, ParticleEmitter.MaxParticles + 1);
    var emitter = new ParticleEmitter(emitterData, Vector3D.Zero);
    Assert.Throws<ParticleEmitter.MaximumNumberOfParticlesExceeded>(() => emitter.Spawn());
    emitter.IsActive = false;
}
See Also