< Summary

Information
Class: MyNet.Utilities.Tests.Extensions.LocalizationExtensionsTests
Assembly: MyNet.Utilities.Tests
File(s): D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Extensions\LocalizationExtensionsTests.cs
Tag: 247_24177402733
Line coverage
100%
Covered lines: 38
Uncovered lines: 0
Coverable lines: 38
Total lines: 169
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
GetCountry_NullCulture_ThrowsArgumentNullException()100%22100%
GetCountry_InvariantCulture_ReturnsNull()100%11100%
GetCountry_SpecificCulture_ReturnsMatchingCountry(...)100%11100%
GetCountry_NeutralCulture_ReturnsMatchingCountry(...)100%11100%
GetCountry_FrFR_ReturnsFrance()100%11100%
GetCountry_EnUS_ReturnsUnitedStatesOfAmerica()100%11100%
GetCountry_DeDe_ReturnsGermany()100%11100%
GetCountry_JaJP_ReturnsJapan()100%11100%
ToAbbreviationKey_ReturnsKeyWithAbbrSuffix(...)100%11100%
Translate_Key_WithCurrentCulture_ReturnsCultureValue()100%11100%
Translate_Key_WithExplicitCulture_ReturnsCultureValue()100%11100%
Translate_Key_WithExplicitSpanishCulture_ReturnsCultureValue()100%11100%
Translate_UnknownKey_ReturnsKeyItself()100%11100%
Translate_Key_WithFilename_WithExplicitCulture_ReturnsCultureValue()100%11100%
Translate_Key_WithFilename_WithUnknownFilename_ReturnsKeyItself()100%11100%
Translate_CultureInfo_Key_ReturnsCultureValue()100%11100%
Translate_CultureInfo_Key_WithFilename_ReturnsCultureValue()100%11100%
TranslateAbbreviated_UnknownAbbrKey_ReturnsAbbrKeyItself()100%11100%
TranslateAbbreviated_WithFilename_UnknownAbbrKey_ReturnsAbbrKeyItself()100%11100%
TranslateAbbreviated_CultureInfo_UnknownAbbrKey_ReturnsAbbrKeyItself()100%11100%
TranslateAbbreviated_CultureInfo_WithFilename_UnknownAbbrKey_ReturnsAbbrKeyItself()100%11100%
GetProvider_NoProviderRegistered_ReturnsNull()100%11100%
GetProvider_ProviderRegistered_ReturnsProvider()100%11100%

File(s)

D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Extensions\LocalizationExtensionsTests.cs

File 'D:\a\MyNet\MyNet\tests\MyNet.Utilities.Tests\Extensions\LocalizationExtensionsTests.cs' does not exist (any more).