Particle3DEmitterTests LoadParticleEmitterDataToGetConsistentValues 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 LoadParticleEmitterDataToGetConsistentValues()
Examples

[Test, CloseAfterFirstFrame]
public void LoadParticleEmitterDataToGetConsistentValues()
{
    var data = ContentLoader.Load<ParticleEmitterData>("FireEmitter");
    Assert.IsNotNull(data.ParticleMaterial.DiffuseMap);
    Assert.AreEqual(256, data.MaximumNumberOfParticles);
    Assert.AreEqual(5.0f, data.LifeTime);
    Assert.AreEqual(0.1f, data.SpawnInterval);
    Assert.AreEqual(Color.Red, data.Color.Start);
    Assert.AreEqual(Color.Green, data.Color.End);
}
See Also