public void EnemyFactoryTest() { var enemyA = EnemyFactory.GetEnemyByType("Zombie"); enemyA.Stats.Life.Value = 20; Assert.AreEqual(20, enemyA.Stats.Life.Value); EnemyPool.Release(enemyA); enemyA = EnemyFactory.GetEnemyByType("Zombie"); Assert.AreEqual(0, enemyA.Stats.Life.Value); enemyA.Stats.Life.Value = 20; var enemyB = EnemyFactory.GetEnemyByType("Zombie"); Assert.AreEqual(0, enemyB.Stats.Life.Value); }