Esempio n. 1
0
 public void RabbitGrowthTests(int totalYears, int expectedRabbitAge, int expectedRabbitCount)
 {
     // Use of TUPLE (int Name, int Name)
     (int actualCumulativeAge, int actualRabbitCount) = RabbitCollection.MultiplyRabbits(totalYears);
     //Assert
     Assert.AreEqual(expectedRabbitAge, actualCumulativeAge);
     Assert.AreEqual(expectedRabbitCount, actualRabbitCount);
 }
Esempio n. 2
0
        public void RabbitGrowthTests(int totalYears, int expectedRabbitAge, int expectedRabbitCount)
        {
            //Arrange
            //Act
            //Assert

            (int actualCumulativeAge, int actualRabbitCount) = RabbitCollection.MultiplyRabbits(totalYears);
            Assert.AreEqual(expectedRabbitAge, actualCumulativeAge);
            Assert.AreEqual(expectedRabbitCount, actualRabbitCount);
        }
Esempio n. 3
0
 public void RabbitGrowthTest(int totalYears, int expectedRabbitAge, int expectedCount)
 {
     (int actualRabbitAge, int actualCount) = RabbitCollection.MultiplyRabbits(totalYears);
     Assert.AreEqual(expectedRabbitAge, actualRabbitAge);
     Assert.AreEqual(expectedCount, actualCount);
 }