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

Commit

Permalink
test behavior change caused by removing CAS related ctor (#19494)
Browse files Browse the repository at this point in the history
  • Loading branch information
krwq authored and safern committed May 9, 2017
1 parent fe7f6e3 commit 236933a
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -633,7 +633,12 @@ public void DecryptData_CipherReference_InvalidUri()
ed.CipherData = new CipherData();
ed.CipherData.CipherReference = new CipherReference("invaliduri");

Assert.Throws<CryptographicException>(() => exml.DecryptData(ed, aes));
// https://github.com/dotnet/corefx/issues/19272
Action decrypt = () => exml.DecryptData(ed, aes);
if (PlatformDetection.IsFullFramework)
Assert.Throws<ArgumentNullException>(decrypt);
else
Assert.Throws<CryptographicException>(decrypt);
}
}

Expand Down

0 comments on commit 236933a

Please sign in to comment.