FlyingPenguinTests WithoutFlyingPenguinTowerHasDefaultAttackFrequency 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 WithoutFlyingPenguinTowerHasDefaultAttackFrequency()
Examples

[Test]
public void WithoutFlyingPenguinTowerHasDefaultAttackFrequency()
{
    player.UnlockAvatar(CreepyTowers.Content.Avatars.Dragon);
    player.ChangeAvatar(CreepyTowers.Content.Avatars.Dragon);
    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, tower.GetStatValue("AttackFrequency"));
}
See Also