public void T03_CanRetrieveHealthFromTable()
        {
            HealthManager.Initialize();
            SetupMockHealth(out GameObject gameObject, out IHealth healthInitial);
            IHealth healthReturned;

            HealthManager.AddToTable(healthInitial, gameObject.transform);
            healthReturned = HealthManager.GetFromTable(gameObject.transform);

            Assert.That(healthReturned, Is.SameAs(healthInitial));
        }
        public void T02_CanAddHealthToTable()
        {
            HealthManager.Initialize();
            SetupMockHealth(out GameObject gameObject, out IHealth health);

            Assert.That(HealthManager.GetHealthCount(), Is.EqualTo(0));

            HealthManager.AddToTable(health, gameObject.transform);

            Assert.That(HealthManager.GetHealthCount(), Is.EqualTo(1));
        }
        public void T04_CanRemoveHealthFromTable()
        {
            HealthManager.Initialize();
            SetupMockHealth(out GameObject gameObject, out IHealth health);

            HealthManager.AddToTable(health, gameObject.transform);

            Assert.That(HealthManager.GetHealthCount, Is.EqualTo(1));

            HealthManager.RemoveFromTable(gameObject.transform);

            Assert.That(HealthManager.GetHealthCount, Is.EqualTo(0));
        }
 private void Reset()
 {
     SetCurrentHealth(maxHealth);
     HealthManager.AddToTable(this, transform);
 }