예제 #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);
 }
예제 #2
0
 public void RabbitGrowthAfterThreeYears(int totalYears, int expectedRabbitAge, int expectedRabbitCount)
 {
     // Using TUPLE (int Name, int Name)
     (int actualCumulativeAge, int actualRabbitCount) =
         RabbitCollection.MultiplyRabbitsAfterAgeThreeReached(totalYears);
     // Assert
     Assert.AreEqual(expectedRabbitAge, actualCumulativeAge);
     Assert.AreEqual(expectedRabbitCount, actualRabbitCount);
 }
예제 #3
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);
        }
예제 #4
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);
 }