public void HandleNull() { var converter = new DateTimeConverter(); var result = converter.Convert(null); Assert.Null(result); }
public void HandleNullableDateTimesWithNoValue() { DateTime? input = null; var converter = new DateTimeConverter(); var result = converter.Convert(input); Assert.Null(result); }
public void HandleDateTimes() { DateTime input = new DateTime(2000, 1, 1); var converter = new DateTimeConverter(); var result = converter.Convert(input); Assert.Equal("01/01/2000 00:00:00", result); }