public void Test1() // comprueba que se esté impidiendo que ingresen fechas inválidas. { bool expected = true; CheckDateExist toDate = new CheckDateExist("10/11/1977"); Assert.AreEqual(expected, toDate.CheckExist()); }
public void Test2() { string expected = "10-11-1977"; string resultado; CheckDateExist toDate1 = new CheckDateExist("10/11/1977"); ChangeFormat date = new ChangeFormat(toDate1); Assert.AreEqual(expected, date.FSlashToDash()); }
public ChangeFormat(CheckDateExist date) { this.Date = date; }