public void Test_Construct()
 {
     //---------------Set up test pack-------------------
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     DateTimeNowConverter dateTimeNowConverter = new DateTimeNowConverter();
     //---------------Test Result -----------------------
     Assert.IsInstanceOf(typeof (TypeConverter), dateTimeNowConverter);
 }
 public void Test_CanConvertTo_WithDateTime_ShouldReturnTrue()
 {
     //---------------Set up test pack-------------------
     DateTimeNowConverter dateTimeNowConverter = new DateTimeNowConverter();
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     bool result = dateTimeNowConverter.CanConvertTo(typeof(DateTime));
     //---------------Test Result -----------------------
     Assert.IsTrue(result);
 }
 public void Test_ConvertTo_WithDateTime_ShouldReturnNowValue()
 {
     //---------------Set up test pack-------------------
     DateTimeNowConverter dateTimeNowConverter = new DateTimeNowConverter();
     DateTimeNow dateTimeNow = new DateTimeNow();
     DateTime snapshot = DateTime.Now;
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     object result = dateTimeNowConverter.ConvertTo(dateTimeNow, typeof(DateTime));
     //---------------Test Result -----------------------
     DateTime dateTime = TestUtil.AssertIsInstanceOf<DateTime>(result);
     Assert.Greater(dateTime, snapshot.AddSeconds(-1));
     Assert.Less(dateTime, snapshot.AddSeconds(1));
 }