Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scenario test for globalization #6011

Open
lbussell opened this issue Oct 29, 2024 · 0 comments
Open

Add scenario test for globalization #6011

lbussell opened this issue Oct 29, 2024 · 0 comments

Comments

@lbussell
Copy link
Contributor

Currently we have the following test that is ran inside the SDK images when testing xunit functionality:

/// <summary>
/// This ensures that localization is properly configured in the sdk image.
/// </summary>
/// <remarks>
/// See https://github.com/dotnet/dotnet-docker/issues/3844
/// </remarks>
[Fact]
public void CurrencyLocalization()

This is not sufficient to validate Globalization functionality in all images. We should add a test that validates all aspects of globalization are working correctly:

  • The test should detect if globalization is enabled in .NET.
    • If globalization is enabled:
      • It should validate that the environment variable is set.
      • It should validate that localization works (currency formatting for example).
      • It should validate that using time zone related classes works.
    • If globalization is disabled:
      • It should validate that calling globalization-related methods fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

1 participant