Ejemplo n.º 1
0
 private int GetAgeFromBirthday()
 {
     return(AgeCalculator.GetAgeFromBirthday(this.Birthday));
 }
Ejemplo n.º 2
0
    public static int[] TwoOldestAges(int[] ages)
    {
        var calculator = new AgeCalculator(ages);

        return(calculator.TwoOldestAges());
    }
Ejemplo n.º 3
0
        public void REturnsNullIfDateIsValid()
        {
            //Arrange & Act & Assert

            Assert.AreEqual(null, AgeCalculator.Age(null));
        }
Ejemplo n.º 4
0
 public void Setup() => ageCalculator = new AgeCalculator();