Exemplo n.º 1
0
 public void NowReturnsCurrentTime()
 {
     var clock = new SystemClock();
     var now = DateTime.Now;
     var actual = clock.Now;
     Assert.IsTrue(actual >= now && actual <= DateTime.Now);
 }
Exemplo n.º 2
0
 public void TodayReturnsCurrentDate()
 {
     var clock = new SystemClock();
     var actual = clock.Today;
     Assert.AreEqual(DateTime.Today, actual);
 }