|
|
@ -1,4 +1,5 @@
|
|
|
|
using FluentAssertions;
|
|
|
|
using System.Globalization;
|
|
|
|
|
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
|
|
|
|
|
|
|
@ -16,5 +17,20 @@ namespace NzbDrone.Common.Test.ExtensionTests.StringExtensionTests
|
|
|
|
{
|
|
|
|
{
|
|
|
|
input.FirstCharToLower().Should().Be(expected);
|
|
|
|
input.FirstCharToLower().Should().Be(expected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_lower_case_first_character_regardless_of_culture()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var current = CultureInfo.CurrentCulture;
|
|
|
|
|
|
|
|
CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("tr-TR");
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"InfInite".FirstCharToLower().Should().Be("infInite");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
finally
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CultureInfo.CurrentCulture = current;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|