public void CanPlayWithRoboticPet() { //Arrange var TestRoboticPet = new RoboticPetClass("Dave", 6, "Dog"); //Act TestRoboticPet.Play(); //Assert Assert.Equal(90, TestRoboticPet.Entertain); }
public void CanChargeRoboticPet() { //Arrange var TestRoboticPet = new RoboticPetClass("Dave", 6, "Dog"); //Act TestRoboticPet.Feed(); //Assert Assert.Equal(90, TestRoboticPet.Hunger); }
public void CanServiceRoboticPet() { //Arrange var TestRoboticPet = new RoboticPetClass("Dave", 6, "Dog"); //Act TestRoboticPet.PetMaintenance(); //Assert Assert.Equal(95, TestRoboticPet.Health); }
public void Should_add_Roboticpet_in_List() { //ARRANGE var test_shelter = new Shelter(); // Once instance is created it automatically adds nine pets in the list. test_shelter.Pet.Clear(); // Just for test purposes we need to clear List using built-in Method Clear() var organic = new RoboticPetClass("Tom", 12, "Cat"); test_shelter.Pet.Add(organic); //ARRANGE Assert.Equal("Tom", test_shelter.Pet[0].Name); }