Exemple #1
0
        static void Main(string[] args)
        {
            string input = "";

            Console.WriteLine(requestInput);

            while ((input = Console.ReadLine()) != null)
            {
                Console.WriteLine(LeapYearTest.isLeapYear(int.Parse(input)));
                Console.WriteLine(requestInput);
            }
        }
Exemple #2
0
 public void fact1()
 {
     Assert.True(LeapYearTest.isLeapYear(2016));
 }
Exemple #3
0
 public void fact5()
 {
     Assert.False(LeapYearTest.isLeapYear(1800));
 }
Exemple #4
0
 public void fact6()
 {
     Assert.True(LeapYearTest.isLeapYear(1816));
 }
Exemple #5
0
 public void fact2()
 {
     Assert.True(LeapYearTest.isLeapYear(2020));
 }