* KeyPairPersistenceTest.cs: Re-fix as the UnauthorizedAccessException
is the InnerException of a CryptographicException.
svn path=/trunk/mcs/; revision=35594
+2004-11-03 Sebastien Pouliot <sebastien@ximian.com>
+
+ * KeyPairPersistenceTest.cs: Re-fix as the UnauthorizedAccessException
+ is the InnerException of a CryptographicException.
+
2004-10-28 Sebastien Pouliot <sebastien@ximian.com>
* KeyPairPersistenceTest.cs: Fix two tests to work even if the user
kpp.Remove ();
Assert ("Remove-!Exists", !File.Exists (kpp.Filename));
}
- catch (UnauthorizedAccessException) {
+ catch (CryptographicException ce) {
// not everyone can write to the machine store
+ if (!(ce.InnerException is UnauthorizedAccessException))
+ throw;
}
}