BuffTests Properties 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 Properties()
Examples

[Test]
public void Properties()
{
    var stat = new Stat(100.0f);
    const float Elapsed = 4.0f;
    var effect = new BuffEffect("TestGoldBuff");
    var buff = new Buff(new Stat(0.0f), new BuffEffect("TestHpBuff"))
    {
        Stat = stat,
        Effect = effect,
        Elapsed = Elapsed
    };
    Assert.AreEqual(stat, buff.Stat);
    Assert.AreEqual(effect, buff.Effect);
    Assert.AreEqual(Elapsed, buff.Elapsed);
}
See Also