Skip to content

Instantly share code, notes, and snippets.

@fdeitelhoff
Created February 14, 2013 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdeitelhoff/4953060 to your computer and use it in GitHub Desktop.
Save fdeitelhoff/4953060 to your computer and use it in GitHub Desktop.
Compare upper and lower case letters with the Turkish culture.
[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