Exemple #1
0
 public void DateTimeToShortStringConverterFailsGracefully()
 {
     var converter = new DateTimeToShortStringConverter();
     var converted = converter.Convert(1652, typeof(string), null, null);
     Assert.AreEqual("", converted);
 }
Exemple #2
0
 public void DateTimeToShortStringConverterTest()
 {
     var converter = new DateTimeToShortStringConverter();
     var converted = converter.Convert(DateTime.Parse("2016.02.01 16:52"), typeof(string), null, null);
     Assert.AreEqual("4:52", converted);
 }