Namespace: CreepyTowers.Tests.Creeps
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 NextWaveIsSpawnedOnlyAfterElapsedTimeIsOver() { var waveA = new CreepWave(0.1f, 0.1f, "Paper, Paper", "PaperWave"); var waveB = new CreepWave(0.3f, 0.1f, "Wood", "WoodWave"); new WaveGenerator(new List<CreepWave> { waveA, waveB }, Vector3D.One); AdvanceTimeAndUpdateEntities(0.1f); Assert.AreEqual(1, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count); AdvanceTimeAndUpdateEntities(0.1f); Assert.AreEqual(2, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count); AdvanceTimeAndUpdateEntities(0.4f); Assert.AreEqual(3, EntitiesRunner.Current.GetEntitiesOfType<Creep>().Count); }
See Also