public void RoboticPet_Charge() { RoboticPet pet = new RoboticPet("Dog", "Alexa", 2); pet.Charge(); Assert.Equal(10, pet.Energy); }
public void RoboticPet_Time_Increment() { RoboticPet pet = new RoboticPet("Dog", "Alexa", 2); pet.TimeIncrement(); Assert.Equal(4, pet.Energy); Assert.Equal(4, pet.Lubricity); }
public void Name_RoboticPet() { RoboticPet pet = new RoboticPet("Dog", "Alexa", 2); Assert.Equal("Alexa", pet.Name); Assert.Equal("Dog", pet.Species); Assert.Equal(2, pet.Age); }
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); }
public void Hunger_Holds_Value() { // Arrange RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); // Act pet.Computate(); // Assert Assert.Equal(10, pet.TimeSinceLastCharge); }
public void Hunger_Starts_At_Zero() { // Arrange RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); // Act // Assert Assert.Equal(0, pet.TimeSinceLastCharge); }
public void Version_Holds_Value() { // Arrange RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); // Act // Assert Assert.Equal(2, pet.Version); }
public void Name_Holds_Value() { // Arrange RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); // Act // Assert Assert.Equal("Rosie", pet.Name); }
public ShelterTests() { testOrganicPet1 = new OrganicPet(); testOrganicPet2 = new OrganicPet(); testOrganicPet3 = new OrganicPet(); testRoboticPet1 = new RoboticPet(); testRoboticPet2 = new RoboticPet(); testRoboticPet3 = new RoboticPet(); testShelter = new Shelter(); }
public RoboticTest() { testRPet = new RoboticPet(); }
public RoboticPetTests() { testRoboticPet = new RoboticPet(); }
public void Pet_Class() { // Arrange RoboticPet pet = new RoboticPet("Rosie", "Robotic", "Liger", 2, "Titanium"); }
public RoboticPetTests() { roboticPetTests = new RoboticPet(); }
public RobotPetTests() { testPet = new RoboticPet("Darth Vader", "CAT"); }