Browse Source
Merge pull request #2390 from mehmetuken/localization-tests-error
Fix ES localization tests fail.
pull/2398/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
framework/test/Volo.Abp.Localization.Tests/Volo/Abp/Localization/AbpLocalization_Tests.cs
|
|
|
@ -117,7 +117,7 @@ namespace Volo.Abp.Localization |
|
|
|
|
|
|
|
using (AbpCultureHelper.Use("es")) |
|
|
|
{ |
|
|
|
_localizer["USA"].Value.ShouldBe("Estados unidos de America"); //Inherited from CountryNames/es.json
|
|
|
|
_localizer["USA"].Value.ShouldBe("Estados unidos de América"); //Inherited from CountryNames/es.json
|
|
|
|
_localizer["ThisFieldIsRequired"].Value.ShouldBe("El campo no puede estar vacío"); //Inherited from Validation/es.json
|
|
|
|
|
|
|
|
_localizer.GetAllStrings().ShouldContain(ls => ls.Name == "USA"); |
|
|
|
@ -181,7 +181,7 @@ namespace Volo.Abp.Localization |
|
|
|
|
|
|
|
localizedStrings.ShouldContain( |
|
|
|
ls => ls.Name == "FortyTwo" && |
|
|
|
ls.Value == "Cuarenta y dos" && |
|
|
|
ls.Value == "Curenta y dos" && |
|
|
|
ls.ResourceNotFound == false |
|
|
|
); |
|
|
|
|
|
|
|
@ -217,7 +217,7 @@ namespace Volo.Abp.Localization |
|
|
|
var localizedStrings = _localizer.GetAllStrings(false).ToList(); |
|
|
|
|
|
|
|
localizedStrings.ShouldNotContain( |
|
|
|
ls => ls.Name == "FortyTwo" |
|
|
|
ls => ls.Name == "FortyThree" |
|
|
|
); |
|
|
|
|
|
|
|
localizedStrings.ShouldContain( |
|
|
|
|