From 2c6f5394cd0f1bee15ad2abd3c806f96ccc3c8db Mon Sep 17 00:00:00 2001 From: Heng Liu Date: Mon, 2 Mar 2020 14:35:36 -0800 Subject: [PATCH] enable 4 tests on Mac --- .../SigningTests/CertificateChainUtilityTests.cs | 4 ++-- .../NuGet.Packaging.Test/SigningTests/SigningUtilityTests.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/CertificateChainUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/CertificateChainUtilityTests.cs index 3bd1ff5c2b3..29f4c1aaad2 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/CertificateChainUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/CertificateChainUtilityTests.cs @@ -73,7 +73,7 @@ public void GetCertificateChain_WhenCertificateTypeUndefined_Throws() Assert.Equal("certificateType", exception.ParamName); } - [PlatformFact(Platform.Windows, Platform.Linux)] // https://github.com/NuGet/Home/issues/8047 + [Fact] public void GetCertificateChain_WithUntrustedRoot_Throws() { using (var chainHolder = new X509ChainHolder()) @@ -119,7 +119,7 @@ public void GetCertificateChain_WithUntrustedRoot_Throws() } } - [PlatformFact(Platform.Windows, Platform.Linux)] // https://github.com/NuGet/Home/issues/8047 + [Fact] public void GetCertificateChain_WithUntrustedSelfIssuedCertificate_ReturnsChain() { using (var certificate = _fixture.GetDefaultCertificate()) diff --git a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningUtilityTests.cs b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningUtilityTests.cs index f36daf3aa61..b6e88fbc48b 100644 --- a/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningUtilityTests.cs +++ b/test/NuGet.Core.Tests/NuGet.Packaging.Test/SigningTests/SigningUtilityTests.cs @@ -94,7 +94,7 @@ public void Verify_WithNotYetValidCertificate_Throws() } } - [PlatformFact(Platform.Windows, Platform.Linux)] // https://github.com/NuGet/Home/issues/8047 + [Fact] public void Verify_WhenChainBuildingFails_Throws() { using (var certificate = _fixture.GetExpiredCertificate()) @@ -129,7 +129,7 @@ public void Verify_WhenChainBuildingFails_Throws() } } - [PlatformFact(Platform.Windows, Platform.Linux)] // https://github.com/NuGet/Home/issues/8047 + [Fact] public void Verify_WithUntrustedSelfSignedCertificate_Succeeds() { using (var certificate = _fixture.GetDefaultCertificate())