CreepWaveTests CreepWaveDataCreation 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 CreepWaveDataCreation()
Examples

[Test, CloseAfterFirstFrame]
public void CreepWaveDataCreation()
{
    Assert.AreEqual(5.0f, creepWave.WaitTime);
    Assert.AreEqual(1.0f, creepWave.SpawnInterval);
    Assert.AreEqual(7, creepWave.CreepsAndGroupsList.Count);
}
[Test, CloseAfterFirstFrame]
public void CreepWaveDataCreationFromWave()
{
    var wave = new Wave(5.0f, 1.0f, "Cloth, Iron, Paper, Wood, Glass, Sand, Plastic", "CreepWave");
    creepWave = new CreepWave(wave);
    Assert.AreEqual(5.0f, creepWave.WaitTime);
    Assert.AreEqual(1.0f, creepWave.SpawnInterval);
    Assert.AreEqual(7, creepWave.CreepsAndGroupsList.Count);
}
See Also