BuffTests Constructor Method Delta Engine Documentation

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

public void Constructor()
Examples

[Test]
public void Constructor()
{
    var stat = new Stat(100.0f);
    var effect = new BuffEffect("TestGoldBuff");
    var buff = new Buff(stat, effect);
    Assert.AreEqual(stat, buff.Stat);
    Assert.AreEqual(effect, buff.Effect);
    Assert.AreEqual(0, buff.Elapsed);
}
See Also