mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-06 07:47:17 +01:00
Fix Localization test
This commit is contained in:
parent
fc482d4808
commit
0d69a42ae0
1 changed files with 1 additions and 4 deletions
|
|
@ -5,7 +5,6 @@
|
|||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Localization;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Core.Test.Localization
|
||||
{
|
||||
|
|
@ -31,13 +30,11 @@ public void should_get_string_in_dictionary_if_lang_exists_and_string_exists()
|
|||
[Test]
|
||||
public void should_get_string_in_french()
|
||||
{
|
||||
Mocker.GetMock<IConfigService>().Setup(m => m.UILanguage).Returns("fr_fr");
|
||||
Mocker.GetMock<IConfigService>().Setup(m => m.UILanguage).Returns("fr");
|
||||
|
||||
var localizedString = Subject.GetLocalizedString("BackupNow");
|
||||
|
||||
localizedString.Should().Be("Sauvegarder maintenant");
|
||||
|
||||
ExceptionVerification.ExpectedErrors(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue