Beispiel #1
0
        public void WorksForTheDayMonthExceptLast()
        {
            var result = Week3.NextDay("13", "2", "2018");

            Assert.AreEqual((14, 2, 2018), result);
        }
Beispiel #2
0
        public void WorksForLastDayMonthDecember()
        {
            var result = Week3.NextDay("31", "12", "2018");

            Assert.AreEqual((1, 1, 2019), result);
        }
Beispiel #3
0
        public void WorksForTheLastDayMonthExceptDecember()
        {
            var result = Week3.NextDay("28", "2", "2018");

            Assert.AreEqual((1, 3, 2018), result);
        }
Beispiel #4
0
 public void FailsWithInvalidDayAccordinMonth()
 {
     var result = Week3.NextDay("31", "2", "2018");
 }
Beispiel #5
0
 public void FailsWithInvalidDate()
 {
     var result = Week3.NextDay("32", "12", "2018");
 }
Beispiel #6
0
 public void FailsWithTextValues()
 {
     var result = Week3.NextDay("pepe", "12", "2018");
 }