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