Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add exception argument to test method
  • Loading branch information
rickardraysearch committed Aug 9, 2017
commit 470773fd47015b92cabc4c9c5e43aacd06f52266
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