Namespace: CreepyTowers.Tests
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void RadiusAttackIncludesCreepsWithinRange() { var tower = new Tower(TowerType.Fire, Vector3D.Zero); var creep = CreateCreepOfType(CreepType.Cloth, Vector3D.UnitY); var nearCreep = new Creep(CreepType.Cloth, new Vector2D(0.0f, 2.0f)); AdvanceTimeTillTowerAttacks(tower); Assert.AreEqual(AttackType.Circle, tower.AttackType); Assert.IsTrue(tower.IsOnCooldown); Assert.Less(creep.GetStatPercentage("Hp"), 1); Assert.Less(nearCreep.GetStatPercentage("Hp"), 1); }
See Also