mirror of https://github.com/abpframework/abp.git
2 changed files with 48 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
using Shouldly; |
|||
using Xunit; |
|||
|
|||
namespace Volo.Abp.Localization; |
|||
|
|||
public class CultureHelper_Tests |
|||
{ |
|||
[Fact] |
|||
public void IsCompatibleCulture() |
|||
{ |
|||
CultureHelper.IsCompatibleCulture("tr", "tr").ShouldBeTrue(); |
|||
CultureHelper.IsCompatibleCulture("tr", "tr-TR").ShouldBeTrue(); |
|||
|
|||
CultureHelper.IsCompatibleCulture("en", "tr").ShouldBeFalse(); |
|||
CultureHelper.IsCompatibleCulture("en", "tr-TR").ShouldBeFalse(); |
|||
|
|||
CultureHelper.IsCompatibleCulture("en-US", "en").ShouldBeFalse(); |
|||
CultureHelper.IsCompatibleCulture("en-US", "en-GB").ShouldBeFalse(); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue