WaveGeneratorTests CreepSpawnedInWaveOnlyAfterSpawnInterval Method Delta Engine Documentation

Namespace: CreepyTowers.Tests.Creeps
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CreepSpawnedInWaveOnlyAfterSpawnInterval()
Examples

[Test, CloseAfterFirstFrame]
public void CreepSpawnedInWaveOnlyAfterSpawnInterval()
{
    new WaveGenerator(waveList, Vector3D.One);
    Assert.AreEqual(0, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count);
    AdvanceTimeAndUpdateEntities(1.1f);
    Assert.GreaterOrEqual(EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count, 1);
    AdvanceTimeAndUpdateEntities(1.1f);
    Assert.GreaterOrEqual(EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count, 2);
}
See Also