public void TestIncrementDateByOneDayAndThatIncrementChangesTheYear() { StringDate date = new StringDate(31, 12, 2015); date.nextDay(); Assert.AreEqual("01012016", date.getDate()); }
public void TestIncrementDateByOneDay() { StringDate date = new StringDate(1, 1, 2017); date.nextDay(); Assert.AreEqual("02012017", date.getDate()); }
public void TestIncrementDateByOneDayAndThatIncrementChangesTheMonth() { StringDate date = new StringDate(31, 1, 2017); date.nextDay(); Assert.AreEqual("01022017", date.getDate()); }
public void TestCreateAStringDateAndGetItInDDMMYYYYformat() { StringDate date = new StringDate(1, 2, 2017); Assert.AreEqual("01022017", date.getDate()); }