Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 470773f

Browse files
Add exception argument to test method
1 parent 0717b9e commit 470773f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)