Пример #1
0
        public void WorksWhenIncreasesOneMonth()
        {
            var result = Week4.IncreaseDate("1", "3", "2018", "31");

            Assert.AreEqual((1, 4, 2018), result);
        }
Пример #2
0
        public void WorksWhenIncreasesOneYear()
        {
            var result = Week4.IncreaseDate("1", "1", "2018", "365");

            Assert.AreEqual((1, 1, 2019), result);
        }
Пример #3
0
        public void WorksWhenIncreaseDaysMonth()
        {
            var result = Week4.IncreaseDate("2", "2", "2018", "5");

            Assert.AreEqual((7, 2, 2018), result);
        }
Пример #4
0
 public void FailsWithInvalidDayAccordinMonth()
 {
     var result = Week4.IncreaseDate("31", "2", "2018", "2");
 }
Пример #5
0
 public void FailsWithIncorrectNumberOfDaysAdd()
 {
     var result = Week4.IncreaseDate("32", "12", "2018", "pp");
 }
Пример #6
0
 public void FailsWithTextValues()
 {
     var result = Week4.IncreaseDate("pepe", "12", "2018", "2");
 }