WaveGeneratorTests FirstItemInWaveListHasWaveWaitTimeAddedToItsSpawnInterval 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 FirstItemInWaveListHasWaveWaitTimeAddedToItsSpawnInterval()
Examples

[Test, CloseAfterFirstFrame]
public void FirstItemInWaveListHasWaveWaitTimeAddedToItsSpawnInterval()
{
    var waveA = new CreepWave(0.05f, 0.05f, "Paper, Squad, Paper", "CreepWave");
    waveList = new List<CreepWave> { waveA };
    new WaveGenerator(waveList, Vector3D.One);
    AdvanceTimeAndUpdateEntities(5.0f);
    Assert.AreEqual(2, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count);
}
See Also