TEST(ParticleGenerator, NewParticlePosition) { ParticleGenerator generator = ParticleGenerator(); generator.intensity = 1; Particle* p = generator.generate(); EXPECT_EQ(p->position[0], generator.position[0]); delete p; }
TEST(ParticleGenerator, NewParticleVelocity) { ParticleGenerator generator = ParticleGenerator(); generator.direction = glm::vec3(1,0,0); generator.intensity = 1; Particle* p = generator.generate(); EXPECT_EQ(p->velocity[0], generator.direction[0]); delete p; }