StatTests Percentage 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 Percentage()
Examples

[Test]
public void Percentage()
{
    stat.Adjust(-40.0f);
    Assert.AreEqual(0.6f, stat.Percentage);
    Assert.AreEqual(0.0f, new Stat(0.0f).Percentage);
}
See Also