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

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