From a1bb354d984bfb14ddf1e1e4b9f0aec1a9392fad Mon Sep 17 00:00:00 2001 From: Rickard Holmberg Date: Wed, 9 Aug 2017 17:45:35 -0400 Subject: [PATCH] Add exception argument to test method (cherry picked from commit 470773f) --- src/testing/exceptiontest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/exceptiontest.cs b/src/testing/exceptiontest.cs index 6ae41c4e1..45acaa2cc 100644 --- a/src/testing/exceptiontest.cs +++ b/src/testing/exceptiontest.cs @@ -56,11 +56,11 @@ public static bool ThrowException() throw new OverflowException("error"); } - public static IEnumerable ThrowExceptionInIterator() + public static IEnumerable ThrowExceptionInIterator(Exception e) { yield return 1; yield return 2; - throw new OverflowException("error"); + throw e; } public static void ThrowChainedExceptions()