예제 #1
0
        public void Finds_the_number_of_sundays_in_the_20th_century()
        {
            var start = new DateTime(1901, 1, 1);
            var end   = new DateTime(2000, 12, 31);

            Question19.CountingSundays(start, end).Should().Be(5217);
        }
예제 #2
0
        public void Finds_the_number_of_sundays_in_march_2020()
        {
            var start = new DateTime(2020, 3, 1);
            var end   = new DateTime(2020, 3, 31);

            Question19.CountingSundays(start, end).Should().Be(5);
        }
예제 #3
0
 public void Question19Test()
 {
     double[] test = new double[] { 3, 5, 9, 8, 7 };
     CollectionAssert.AreEqual(Question19.ReturnMax(), test);
 }