AgentTests ElapsedBuffExpires Method Delta Engine Documentation

Namespace: CreepyTowers.Tests
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void ElapsedBuffExpires()
Examples

[Test, CloseAfterFirstFrame, Ignore]
public void ElapsedBuffExpires()
{
    creep.ApplyBuff(new BuffEffect("TestGoldBuff"));
    Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count);
    AdvanceTimeAndUpdateEntities(7.0f);
    Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count);
    Assert.AreEqual(13.0f, creep.GetStatValue("Gold"));
}
See Also