public void TestHealthComponentConstructerAndGet() { // Arrange int testHealth = 9001; // Act GodsOfCalamity.Components.HealthComponent healthComponentTest = new GodsOfCalamity.Components.HealthComponent(testHealth); // Assert Assert.AreEqual(healthComponentTest.getHealth(), testHealth); }
public void TestSetHealth() { // Arrange int testHealth = 9001; GodsOfCalamity.Components.HealthComponent healthComponentTest = new GodsOfCalamity.Components.HealthComponent(testHealth); // Act healthComponentTest.setHealth(9000); // Assert Assert.AreEqual(healthComponentTest.getHealth(), 9000); }