Exemplo n.º 1
0
        public string FormatTest(DateTime pDate, string pFormat)
        {
            string result = DateFC.Format(pDate, pFormat);

            return(result);
            // TODO: add assertions to method DateFCTest.FormatTest(DateTime, String)
        }
Exemplo n.º 2
0
        public void Date_Format_EnterDate_Return_MMDDYYYY_Test()
        {   //Arrange
            string   iDate  = "12/08/2018";
            DateTime tDate  = Convert.ToDateTime(iDate);
            var      expect = "12/08/2018";
            // Act
            var result = DateFC.Format(tDate, "MMDDYYYY");

            //Assert
            Assert.AreEqual(expect, result, $"Format the date in 12/08/2018, {result}");
        }