예제 #1
0
        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));
        }
예제 #2
0
        public void GetTodayAsString_Always_Returns_dd_MM_yyyy()
        {
            var clock = new TestableClock();

            var today = clock.GetTodayAsString();

            Assert.That(today, Is.EqualTo("10/03/2018"));
        }
예제 #3
0
        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"));
        }