diff options
Diffstat (limited to 'src/ProtocolBuffers.Test/GeneratedBuilderTest.cs')
-rw-r--r-- | src/ProtocolBuffers.Test/GeneratedBuilderTest.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ProtocolBuffers.Test/GeneratedBuilderTest.cs b/src/ProtocolBuffers.Test/GeneratedBuilderTest.cs index cd870054..1dcb1c21 100644 --- a/src/ProtocolBuffers.Test/GeneratedBuilderTest.cs +++ b/src/ProtocolBuffers.Test/GeneratedBuilderTest.cs @@ -54,7 +54,9 @@ namespace Google.ProtocolBuffers b.AddRangeRepeatedForeignEnum(new OneTimeEnumerator<ForeignEnum>(ForeignEnum.FOREIGN_BAR));
}
- private static void AssertThrows<T>(System.Threading.ThreadStart method) where T : Exception
+ private delegate void TestMethod();
+
+ private static void AssertThrows<T>(TestMethod method) where T : Exception
{
try
{
|