public void WorksWhenIncreasesOneMonth() { var result = Week4.IncreaseDate("1", "3", "2018", "31"); Assert.AreEqual((1, 4, 2018), result); }
public void WorksWhenIncreasesOneYear() { var result = Week4.IncreaseDate("1", "1", "2018", "365"); Assert.AreEqual((1, 1, 2019), result); }
public void WorksWhenIncreaseDaysMonth() { var result = Week4.IncreaseDate("2", "2", "2018", "5"); Assert.AreEqual((7, 2, 2018), result); }
public void FailsWithInvalidDayAccordinMonth() { var result = Week4.IncreaseDate("31", "2", "2018", "2"); }
public void FailsWithIncorrectNumberOfDaysAdd() { var result = Week4.IncreaseDate("32", "12", "2018", "pp"); }
public void FailsWithTextValues() { var result = Week4.IncreaseDate("pepe", "12", "2018", "2"); }