Disable XML crypto test failing on Windows 10 (dotnet/corefx#40775)
authorStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 04:04:25 +0000 (00:04 -0400)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2019 04:04:25 +0000 (00:04 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/70b4d01e18236c925c2d44d49fff7cbb4919dc43

src/libraries/System.Security.Cryptography.Xml/tests/Samples/EncryptingDecryptingAsymmetric.cs

index 804dd5a..3765226 100644 (file)
@@ -78,10 +78,16 @@ namespace System.Security.Cryptography.Xml.Tests
             encrypted.DecryptDocument();
         }
 
-        [Theory]
-        [InlineData(true)] // OAEP is recommended
-        [InlineData(false)]
-        public void AsymmetricEncryptionRoundtrip(bool useOAEP)
+        [Fact]
+        public void AsymmetricEncryptionRoundtripUseOAEP() =>
+            AsymmetricEncryptionRoundtrip(useOAEP: true); // OAEP is recommended
+
+        [ActiveIssue(40759, TestPlatforms.Windows)]
+        [Fact]
+        public void AsymmetricEncryptionRoundtrip() =>
+            AsymmetricEncryptionRoundtrip(useOAEP: false);
+
+        private void AsymmetricEncryptionRoundtrip(bool useOAEP)
         {
             const string testString = "some text node";
             const string exampleXmlRootElement = "example";