Skip to content

[Android] System.Tests.DateTimeOffsetTests & DateTimeOffset test failures #60562

@steveisok

Description

@steveisok

I believe these test failures are due to differences in Android's handling of the th-TH culture, but we should validate fully.

1.) DateTimeOffsetTests.ToString_MatchesExpected & TryFormat_MatchesExpected

Several failures surrounding:

yield return new object[] { DateTimeOffset.MaxValue, "yy", thTH, "42" };

if (PlatformDetection.IsNotInvariantGlobalization)
yield return new object[] { DateTimeOffset.MaxValue, new string('y', i), thTH, 10542.ToString("D" + i) };

Example failures:

Assert.Equal() Failure
              ↓ (pos 0)
    Expected: 42
    Actual:   99
Expected: 0010542
    Actual:   0009999

2.) DateTimeOffsetTests.ToString_Invoke_ReturnsExpected & TryFormat_MatchesExpected

Same problem as #1 with test failures surrounding:

yield return new object[] { DateTime.MaxValue, "yy", thTH, "42" };

yield return new object[] { DateTime.MaxValue, new string('y', i), thTH, 10542.ToString("D" + i) };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions