8 references to ThrowsCryptographicException
Microsoft.AspNetCore.DataProtection.Tests (8)
KeyManagement\KeyRingBasedDataProtectorTests.cs (8)
122
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Protect(new byte[0]));
154
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
172
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
190
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
221
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
274
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
310
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
408
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));