示例#1
0
        public void IsLeapYear_ForNumberDivisibleByFour_true()
        {
            // eventually your testing code will go here
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(true, testLeapYear.IsLeapYear(2016));
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter the year: ");
            var year = int.Parse(Console.ReadLine() ?? string.Empty);

            Console.WriteLine($"Is year leap: {LeapYear.IsLeapYear(year)}");
        }
示例#3
0
        public void IsLeapYear_ForNumberDivisibleByHundred_false()
        {
            // eventually your testing code will go here
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(false, testLeapYear.IsLeapYear(1900));
        }
示例#4
0
 public void IsLeapYear_ForMultiplesOfFourHundred_true()
 {
     LeapYear testLeapYear = new LeapYear();
       Assert.Equal(true, testLeapYear.IsLeapYear(2000));
 }
示例#5
0
 public void IsLeapYear_ForNumberNotDivisibleByFour_false()
 {
     LeapYear testLeapYear = new LeapYear();
       Assert.Equal(false, testLeapYear.IsLeapYear(1999));
 }
示例#6
0
 public void IsLeapYear_ForNumberDivisibleByFour_true()
 {
     LeapYear testLeapYear = new LeapYear();
       Assert.Equal(true, testLeapYear.IsLeapYear(2012));
 }
示例#7
0
 public void IsLeapYear_ForMultiplesOfOneHundred_false()
 {
     LeapYear testLeapYear = new LeapYear();
       Assert.Equal(false, testLeapYear.IsLeapYear(1900));
 }
        public void IsLeapYear_ForNumberDivisibleByFour_true()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(true, testLeapYear.IsLeapYear(2012));
        }
        public void IsLeapYear_ForMultiplesOfFourHundred_true()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(true, testLeapYear.IsLeapYear(2000));
        }
示例#10
0
        public void IsLeapYear_ForMultiplesOfOneHundred_false()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(false, testLeapYear.IsLeapYear(1900));
        }
示例#11
0
        public void IsLeapYear_ForNumberNotDivisibleByFour_false()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(false, testLeapYear.IsLeapYear(1999));
        }
示例#12
0
        public void IsLeapYear_ForYearDivisibleByFourHundred_true()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(true, testLeapYear.IsLeapYear(2000));
        }
        public void IsLeapYear_ForNumberDivisibleByOneHundred_false()
        {
            LeapYear testLeapYear = new LeapYear();

            Assert.Equal(false, testLeapYear.IsLeapYear(1900));
        }
示例#14
0
 public void NormalYearIsNotLeapYear()
 {
     Assert.False(LeapYear.IsLeapYear(1789));
 }
 public void IsLeapYear_ForNumberDivisibleByOneHundred_false()
 {
     LeapYear testLeapYear = new LeapYear();
       Assert.Equal(false, testLeapYear.IsLeapYear(1900));
 }
示例#16
0
 public void IsLeapYear_ForNumberDivisibleByFour_true()
 {
     //testing code here
     LeapYear LeapYear = new LeapYear();
     Assert.Equal(true, LeapYear.IsLeapYear(2012));
 }