10 references to ExceptionAssert2
Microsoft.AspNetCore.DataProtection.Tests (10)
KeyManagement\KeyRingBasedDataProtectorTests.cs (10)
128var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Protect(new byte[0])); 160var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 178var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 196var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(badProtectedPayload)); 227var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 280var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 316var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 414var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(protectedData)); 754var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(shortCiphertext, ref destination)); 775var ex = ExceptionAssert2.ThrowsCryptographicException(() => protector.Unprotect(new byte[10], ref buffer));