예제 #1
0
 public void GivenTheInvariantLocale_ToDateParsesADateWithTheSpecifiedDateFormatString()
 {
     Assert.Equal(new DateTime(2000, 12, 31), Formulae.StringToDate("2000-12-31", "yyyy-MM-dd", CultureInfo.InvariantCulture));
 }
예제 #2
0
 public void GivenTheGermanLocale_ToDateParsesADateWithTheSpecifiedDateFormatStringAndLocale()
 {
     Assert.Equal(new DateTime(2000, 12, 31), Formulae.StringToDate("2000/Dez/31", "yyyy/MMM/dd", new CultureInfo("de-DE")));
 }