public void RoboticPet_Charge() { RoboticPet pet = new RoboticPet("Dog", "Alexa", 2); pet.Charge(); Assert.Equal(10, pet.Energy); }
public void Stats_Dont_Exceed_Max() { RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); for (int i = 0; i < 100; i++) { pet.Charge(); } Assert.Equal(0, pet.TimeSinceLastCharge); }