Created
September 12, 2023 13:32
-
-
Save jskeet/08f7993de8f6131c7048a611f8b62de8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void CultureDayNameTest() | |
{ | |
var polishCulture = CultureInfo.CreateSpecificCulture("pl-PL"); | |
DateTime date = new DateTime(2023, 9, 16); | |
// Format the day of the week in the Polish culture. Without specifying | |
// the culture, the current culture is used. | |
string stringDay = date.ToString("dddd", polishCulture); | |
stringDay.ShouldContain(DayOfWeek.Saturday.ToString()); //Not passed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment