Exemplo n.º 1
0
        public void RoboticPet_Charge()
        {
            RoboticPet pet = new RoboticPet("Dog", "Alexa", 2);

            pet.Charge();

            Assert.Equal(10, pet.Energy);
        }
Exemplo n.º 2
0
        public void RoboticPet_Time_Increment()
        {
            RoboticPet pet = new RoboticPet("Dog", "Alexa", 2);

            pet.TimeIncrement();

            Assert.Equal(4, pet.Energy);
            Assert.Equal(4, pet.Lubricity);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 9
0
        public ShelterTests()
        {
            testOrganicPet1 = new OrganicPet();
            testOrganicPet2 = new OrganicPet();
            testOrganicPet3 = new OrganicPet();

            testRoboticPet1 = new RoboticPet();
            testRoboticPet2 = new RoboticPet();
            testRoboticPet3 = new RoboticPet();

            testShelter = new Shelter();
        }
Exemplo n.º 10
0
 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();
 }
Exemplo n.º 14
0
 public RobotPetTests()
 {
     testPet = new RoboticPet("Darth Vader", "CAT");
 }