aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers.Test
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProtocolBuffers.Test')
-rw-r--r--src/ProtocolBuffers.Test/TestUtil.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ProtocolBuffers.Test/TestUtil.cs b/src/ProtocolBuffers.Test/TestUtil.cs
index 12d73d16..ffbb91d5 100644
--- a/src/ProtocolBuffers.Test/TestUtil.cs
+++ b/src/ProtocolBuffers.Test/TestUtil.cs
@@ -1823,6 +1823,13 @@ namespace Google.ProtocolBuffers
action();
Assert.Fail("Exception was not thrown");
}
+ // Not a general case, however, Compact Framework v2 does use Invoke
+ catch (System.Reflection.TargetInvocationException te)
+ {
+ if (te.InnerException.GetType() != typeof(ArgumentNullException))
+ throw;
+ }
+ // Normally expected exception
catch (ArgumentNullException)
{
// We expect this exception.