Skip to content

Commit

Permalink
Remove incorrect assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Aug 17, 2021
1 parent 6e2eba7 commit 2a70b29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Moq/MethodCall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ public void SetThrowExceptionBehavior(Exception exception)

public void SetThrowComputedExceptionBehavior(Delegate exceptionFactory)
{
Debug.Assert(this.Method.ReturnType != typeof(void));
Debug.Assert(this.returnOrThrow == null);

if (exceptionFactory == null)
Expand Down

0 comments on commit 2a70b29

Please sign in to comment.