FlyingPenguinTests WithFlyingPenguinTowerHasFasterAttacks Method Delta Engine Documentation

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

public void WithFlyingPenguinTowerHasFasterAttacks()
Examples

[Test]
public void WithFlyingPenguinTowerHasFasterAttacks()
{
    var tower = new Tower(TowerType.Fire, Vector3D.Zero);
    var towerProperties = ContentLoader.Load<TowerPropertiesXml>(Xml.TowerProperties.ToString());
    var defaultAttackFrequency = towerProperties.Get(TowerType.Fire).AttackFrequency;
    Assert.AreEqual(defaultAttackFrequency * 1.3333f, tower.GetStatValue("AttackFrequency"));
}
See Also