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

[Test, CloseAfterFirstFrame]
public void TestTheTotalOfNumberOfCreepsInLevel()
{
    var waveA = new CreepWave(1.0f, 1.0f, "Paper, Paper", "PaperWave");
    var generator = new WaveGenerator(new List<CreepWave> { waveA }, Vector3D.One);
    AdvanceTimeAndUpdateEntities(1.01f);
    AdvanceTimeAndUpdateEntities(0.1f);
    Assert.AreEqual(2, generator.TotalCreepsInLevel);
}
See Also