mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 07:42:49 +00:00
Added test for turkish FirstCharToUpper
This commit is contained in:
parent
43f70d5464
commit
2147c52695
1 changed files with 17 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
using FluentAssertions;
|
||||
using System.Globalization;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
|
@ -16,5 +17,20 @@ public void should_capitalize_first_character(string input, string expected)
|
|||
{
|
||||
input.FirstCharToUpper().Should().Be(expected);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_capitalize_first_character_regardless_of_culture()
|
||||
{
|
||||
var current = CultureInfo.CurrentCulture;
|
||||
CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("tr-TR");
|
||||
try
|
||||
{
|
||||
"infInite".FirstCharToUpper().Should().Be("InfInite");
|
||||
}
|
||||
finally
|
||||
{
|
||||
CultureInfo.CurrentCulture = current;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue