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