Skip to content

Commit

Permalink
Add exception argument to test method
Browse files Browse the repository at this point in the history
(cherry picked from commit 470773f)
  • Loading branch information
rickardraysearch authored and abessen committed Jun 25, 2018
1 parent d119c6c commit a1bb354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/testing/exceptiontest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ public static bool ThrowException()
throw new OverflowException("error");
}

public static IEnumerable<int> ThrowExceptionInIterator()
public static IEnumerable<int> ThrowExceptionInIterator(Exception e)
{
yield return 1;
yield return 2;
throw new OverflowException("error");
throw e;
}

public static void ThrowChainedExceptions()
Expand Down

0 comments on commit a1bb354

Please sign in to comment.