public void Return_todays_date_as_string_in_dd_MM_yyyy_format() { var clock = new TestableClock(); var todaysDate = clock.TodaysDateAsString(); Assert.That(todaysDate, Is.EqualTo(ExpectedDate)); }
public void GetTodayAsString_Always_Returns_dd_MM_yyyy() { var clock = new TestableClock(); var today = clock.GetTodayAsString(); Assert.That(today, Is.EqualTo("10/03/2018")); }
public void Return_Todays_Date_In_dd_MM_yyyy_Format() { // Arrange var clock = new TestableClock(); // Act var date = clock.GetCurrentDateAsString(); // Assert Assert.That(date, Is.EqualTo("24/04/2015")); }