public void SleepinessAndBathroomAtOneHundredReducesHealthByTwentyTotal() { // Arrangemenet VirtualMonster testMonster = new VirtualMonster("Ragelok", 66, 100, 77, 20, 100, 87); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(46, testMonster.Health); }
public void TickMethodIncreasesHungerByFive() { // Arrangment VirtualMonster testMonster = new VirtualMonster("Bugluk"); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(55, testMonster.Hunger); }
public void ThirstAtOneHundredReducesHealthByTen() { // Arrangemenet VirtualMonster testMonster = new VirtualMonster("Uuuug", 58, 77, 98, 14, 39, 12); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(48, testMonster.Health); }
public void HungerAtOneHundredReducesHealthByTen() { // Arrangemenet VirtualMonster testMonster = new VirtualMonster("Frabbleb", 46, 98, 76, 44, 56, 75); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(36, testMonster.Health); }
public void TickMethodCanRaiseRageAboveOneHundred() { // Arrangment VirtualMonster testMonster = new VirtualMonster("Burzurz", 82, 98, 98, 98, 100, 97); // Activation testMonster.Tick(); // Assertion Assert.IsTrue(testMonster.Rage > 100); }
public void HealthAtZeroMonsterDies() { // Arrangement VirtualMonster testMonster = new VirtualMonster("TestMonster", 10, 50, 50, 99, 50, 50); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(0, testMonster.Health); Assert.AreEqual(false, testMonster.IsAlive); }
public void TickMethodIncreasesThirstAndSleepienssByFiveBathroomByOne() { // Arrangment VirtualMonster testMonster = new VirtualMonster("Bugluk"); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(55, testMonster.Sleepiness); Assert.AreEqual(55, testMonster.Thirst); Assert.AreEqual(26, testMonster.Bathroom); }
public void TickMethodDoesNotRaiseAttributesOverOneHundred() { // Arrangment VirtualMonster testMonster = new VirtualMonster("Gragnoff", 99, 98, 98, 98, 100, 50); // Activation testMonster.Tick(); // Assertion Assert.AreEqual(100, testMonster.Sleepiness); Assert.AreEqual(100, testMonster.Hunger); Assert.AreEqual(100, testMonster.Thirst); Assert.AreEqual(100, testMonster.Bathroom); }