public void ParticleDirectionalClassCountDirectional() { DirectionParticle dir = ParticleFactory .Get(ParticleType.Direction) as DirectionParticle; Assert.AreEqual(dir.CurrentGameObjects().Count, 3); }
public void EnsureDirectionCurrentGameObjectsDynamicCalled() { var l = new Log(); var t = ParticleType.Direction; DirectionParticle p = ParticleFactory.Get(t, l) as DirectionParticle; p.CurrentGameObjects(); var val = l.Get("DirectionParticle#CurrentGameObjects"); Assert.AreEqual(val, 1); }
public void EnsureDirectionnAllDynamicCalled() { var l = new Log(); var t = ParticleType.Direction; DirectionParticle p = ParticleFactory.Get(t, l) as DirectionParticle; var go = new GameObject("test"); var rb = go.AddComponent <Rigidbody>(); Assert.AreEqual(l.Get("BaseParticle#Load"), 1); p.Run(go.GetComponent <Rigidbody>()); Assert.AreEqual(l.Get("DirectionParticle#Run"), 1); p.CurrentGameObjects(); var val = l.Get("DirectionParticle#CurrentGameObjects"); Assert.AreEqual(val, 1); }