Example #1
0
        public void TestMethod_GetDatoStringYMD()
        {
            UclDate date = new UclDate(2019, 2, 6);

            Assert.AreEqual("2019-02-06", date.GetDatoStringYMD());

            date = new UclDate(20019, 2, 6);
            Assert.AreEqual("20190-02-06", date.GetDatoStringYMD());
        }
Example #2
0
 public void GetDateStringYMD()
 {
     Assert.AreEqual(ucl.GetDatoStringYMD(), "2019-12-29");
 }
 public void Test_GetDateStringYMD()
 {
     Assert.AreEqual(dato.GetDatoStringYMD(), "1990-4-23");
 }
Example #4
0
 public void GetDateStringYMD_Test()
 {
     Assert.AreEqual(aDate.GetDatoStringYMD(), "2019-02-06");
 }
        /*
         * syntax error
         * Message: Assert.AreEqual failed. Expected:<2019/2/6>. Actual:<2019-2-6>.
         */
        public void TestMethod_GetDatoStringYMD()
        {
            string ymd = TestDate.GetDatoStringYMD();

            Assert.AreEqual("2019/2/6", ymd);
        }
        public void Test_format()
        {
            UclDate aDate = new UclDate(2019, 4, 600000000);

            Assert.AreEqual("2019,2,6", aDate.GetDatoStringYMD());
        }