static void Main(string[] args) { Console.WriteLine("This application convert years into days!"); int inputYears = Convert.ToInt32(Console.ReadLine()); int outputDays = AgeConverter.AgeintoDays(inputYears); Console.WriteLine($"Result: [{outputDays}] days"); }
public void Test_65Years() { int convertedYears = AgeConverter.AgeintoDays(65); Assert.AreEqual(23725, convertedYears); }
public void Test_0Years() { int convertedYears = AgeConverter.AgeintoDays(0); Assert.AreEqual(0, convertedYears); }
public void Test_37Years() { int convertedYears = AgeConverter.AgeintoDays(37); Assert.AreEqual(13505, convertedYears); }