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