예제 #1
0
 public void ConvertBackTest(string expecteValue, string format, string dateString)
 {
     var converter = new StringToDateConverter(format);
     string returnValue = (string)converter.ConvertBack(DateTime.ParseExact(dateString, "yyyy-MM-dd", CultureInfo.InvariantCulture),
         typeof(Int32), null, CultureInfo.CurrentCulture);
     Assert.AreEqual(expecteValue, returnValue);
 }