Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6059798

Browse files
committed
Use existing Interop.IsWindows instead of inventing a new detection logic.
1 parent 2ed52fd commit 6059798

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/System.Security.Cryptography.X509Certificates/tests/System.Security.Cryptography.X509Certificates.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
<Compile Include="PropsTests.cs" />
3232
<Compile Include="PublicKeyTests.cs" />
3333
<Compile Include="TestData.cs" />
34+
<Compile Include="$(CommonPath)\Interop\Interop.PlatformDetection.cs">
35+
<Link>Common\Interop\Interop.PlatformDetection.cs</Link>
36+
</Compile>
3437
</ItemGroup>
3538
<ItemGroup>
3639
<None Include="project.json" />

src/System.Security.Cryptography.X509Certificates/tests/TestData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ internal static class TestData
373373

374374
internal static string NormalizeX500String(string expected)
375375
{
376-
if (StringComparer.Ordinal.Equals("Windows_NT", Environment.GetEnvironmentVariable("OS")))
376+
if (Interop.IsWindows)
377377
{
378378
return expected;
379379
}

0 commit comments

Comments
 (0)