Created
February 14, 2013 14:09
-
-
Save fdeitelhoff/4953060 to your computer and use it in GitHub Desktop.
Compare upper and lower case letters with the Turkish culture.
This file contains 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
[TestMethod] | |
public void TestTurkishStringCompare() | |
{ | |
const string lowerCharacters = "abcdefghijklmnopqrstuvwxyz"; | |
const string upperCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
var turkishCulture = CultureInfo.GetCultureInfo("tr-TR"); | |
var upper = lowerCharacters.ToUpper(turkishCulture); | |
var lower = upperCharacters.ToLower(turkishCulture); | |
Assert.AreNotEqual(upper, lower); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment