From 236933a7a726e71bf08a60ff4826db4bd77d43e8 Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Mon, 8 May 2017 18:09:46 -0700 Subject: [PATCH] test behavior change caused by removing CAS related ctor (#19494) --- .../tests/EncryptedXmlTest.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs b/src/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs index 847a8e31e260..265ad8ab3fe3 100644 --- a/src/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs +++ b/src/System.Security.Cryptography.Xml/tests/EncryptedXmlTest.cs @@ -633,7 +633,12 @@ public void DecryptData_CipherReference_InvalidUri() ed.CipherData = new CipherData(); ed.CipherData.CipherReference = new CipherReference("invaliduri"); - Assert.Throws(() => exml.DecryptData(ed, aes)); + // https://github.com/dotnet/corefx/issues/19272 + Action decrypt = () => exml.DecryptData(ed, aes); + if (PlatformDetection.IsFullFramework) + Assert.Throws(decrypt); + else + Assert.Throws(decrypt); } }