Remove ActiveIssue on OSVersion_ValidVersion_OSX (#70367)

* Remove ActiveIssue on OSVersion_ValidVersion_OSX

This test was fixed to work correctly on the latest macOS versions in https://github.com/dotnet/runtime/pull/64565. The test can now be re-enabled.

Fix #49106

* Verify the Minor version as well, since it is no longer being verified by the RID.
This commit is contained in:
Eric Erhardt authored and GitHub committed 2022-06-08 10:19:04 -06:00
1 parent e3ce3d1455
commit 352c1dfc45
1 file changed
+1 -1
@@ -184,7 +184,6 @@ namespace System.Tests
[Fact]
[PlatformSpecific(TestPlatforms.OSX)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/49106", typeof(PlatformDetection), nameof(PlatformDetection.IsMacOsAppleSilicon))]
public void OSVersion_ValidVersion_OSX()
{
Version version = Environment.OSVersion.Version;
@@ -193,6 +192,7 @@ namespace System.Tests
// As of 12.0, only major version numbers are included in the RID
Assert.Contains(version.ToString(1), RuntimeInformation.RuntimeIdentifier);
Assert.True(version.Minor >= 0, "OSVersion Minor should be non-negative");
Assert.True(version.Build >= 0, "OSVersion Build should be non-negative");
Assert.Equal(-1, version.Revision); // Revision is never set on OSX
}