Skip to content

Commit a1bb354

Browse files
rickardraysearchabessen
authored and
abessen
committed
Add exception argument to test method
(cherry picked from commit 470773f)
1 parent d119c6c commit a1bb354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testing/exceptiontest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public static bool ThrowException()
5656
throw new OverflowException("error");
5757
}
5858

59-
public static IEnumerable<int> ThrowExceptionInIterator()
59+
public static IEnumerable<int> ThrowExceptionInIterator(Exception e)
6060
{
6161
yield return 1;
6262
yield return 2;
63-
throw new OverflowException("error");
63+
throw e;
6464
}
6565

6666
public static void ThrowChainedExceptions()

0 commit comments

Comments
 (0)