public void CanReduceQueenBeesHealth_ShouldReturn80() { var currentHealth = _queenBee.Damage(20); Assert.That(currentHealth, Is.Not.Null); Assert.AreEqual(currentHealth, 80f); }
public void DeathTest2() { int damageAmount = 81; QueenBee bee = new QueenBee(); bee.Damage(damageAmount); Assert.AreEqual(bee.Health, 19); bee.Damage(damageAmount); Assert.AreEqual(bee.Health, 19); }
public void Damage_StatusTypeIsDead_Return() { // Arrange _sut.StatusType = StatusType.Dead; // Act _sut.Damage(1); // Assert Assert.AreEqual(100, _sut.Health); }
public void QueenDeadTest() { ///This test is to check if the queen is not still alive after 90 damage. QueenBee bee1 = new QueenBee(); bee1.Damage(90); Assert.AreEqual(true, bee1.IsDead); }
public void QueenAliveTest() { //This test is to check if the queen is still alive after 10 damage. QueenBee bee1 = new QueenBee(); bee1.Damage(10); Assert.AreEqual(false, bee1.IsDead); }
public void WhenDamagingAQueenBeeForEightyOne_ItIsDead() { // Arrange var queenBee = new QueenBee(); // Act queenBee.Damage(81); // Assert Assert.IsTrue(queenBee.IsDead); }
public void WhenDamagingAQueenBeeForEightyPercent_ItIsAlive() { // Arrange var queenBee = new QueenBee(); // Act queenBee.Damage(80); // Assert Assert.IsFalse(queenBee.IsDead); }