Skip to content

Commit

Permalink
Merge pull request #1943 from jnyrup/net7
Browse files Browse the repository at this point in the history
Filter dynamic methods from stack trace
  • Loading branch information
jnyrup committed Jun 19, 2022
2 parents 1f4db92 + 788b04f commit 59e96d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/FluentAssertions/CallerIdentifier.cs
Expand Up @@ -44,7 +44,7 @@ public static string DetermineCallerIdentity()
allStackFrames,
startIndex: 0,
count: searchStart + 1,
frame => !IsCurrentAssembly(frame) && !IsDotNet(frame));
frame => !IsCurrentAssembly(frame) && !IsDynamic(frame) && !IsDotNet(frame));

for (int i = lastUserStackFrameBeforeFluentAssertionsCodeIndex; i < allStackFrames.Length; i++)
{
Expand Down

0 comments on commit 59e96d4

Please sign in to comment.