8 references to ExceptionAssert2
Microsoft.AspNetCore.DataProtection.Tests (8)
KeyManagement\KeyRingBasedDataProtectorTests.cs (8)
121
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Protect(new byte[0]));
153
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload));
171
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload));
189
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload));
220
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(protectedData));
273
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(protectedData));
309
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(protectedData));
407
var ex =
ExceptionAssert2
.ThrowsCryptographicException(() => protector.Unprotect(protectedData));