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"))); }
public void ConvertBack_Null_Formatting() { var converter = new ShortDateFormattingConverter(); Assert.AreEqual(ConverterHelper.DoNothingBindingValue, converter.ConvertBack(null, typeof (DateTime), "G", new CultureInfo("nl-NL"))); }