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

[Test, CloseAfterFirstFrame]
public void CheckForGroupGarbage()
{
    creepWave = new CreepWave(5.0f, 1.0f, "Plastic2", "Plastic3");
    if (creepWave.CreepsAndGroupsList[0].GetType() == typeof(GroupData))
    {
        var group = (GroupData)creepWave.CreepsAndGroupsList[0];
        Assert.AreEqual(2, group.CreepList.Count);
        Assert.AreEqual(CreepType.Plastic, group.CreepList[0]);
        Assert.AreEqual(CreepType.Plastic, group.CreepList[1]);
    }
}
See Also