コード例 #1
0
 public void ConvertBack_Date_Formatting()
 {
     var converter = new ShortDateFormattingConverter();
     Assert.AreEqual(new DateTime(2010, 12, 16), converter.ConvertBack("16-12-2010 0:00:00", typeof (DateTime), "G", new CultureInfo("nl-NL")));
 }
コード例 #2
0
 public void ConvertBack_Null_Formatting()
 {
     var converter = new ShortDateFormattingConverter();
     Assert.AreEqual(ConverterHelper.DoNothingBindingValue, converter.ConvertBack(null, typeof (DateTime), "G", new CultureInfo("nl-NL")));
 }