Exemplo n.º 1
0
        public void TestIncrementDateByOneDayAndThatIncrementChangesTheYear()
        {
            StringDate date = new StringDate(31, 12, 2015);

            date.nextDay();
            Assert.AreEqual("01012016", date.getDate());
        }
Exemplo n.º 2
0
        public void TestIncrementDateByOneDay()
        {
            StringDate date = new StringDate(1, 1, 2017);

            date.nextDay();
            Assert.AreEqual("02012017", date.getDate());
        }
Exemplo n.º 3
0
        public void TestIncrementDateByOneDayAndThatIncrementChangesTheMonth()
        {
            StringDate date = new StringDate(31, 1, 2017);

            date.nextDay();
            Assert.AreEqual("01022017", date.getDate());
        }
Exemplo n.º 4
0
        public void TestCreateAStringDateAndGetItInDDMMYYYYformat()
        {
            StringDate date = new StringDate(1, 2, 2017);

            Assert.AreEqual("01022017", date.getDate());
        }