Skip to content

Commit

Permalink
Update XUnit2Reporter.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 24, 2023
1 parent 74f8760 commit 8061343
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ApprovalTests/Reporters/TestFrameworks/XUnit2Reporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ static bool IsXunit2()
return AppDomain
.CurrentDomain
.GetAssemblies()
.Any(a =>
.Any(_ =>
{
var name = a.FullName;
return name.Contains("xunit.core") || name.Contains("xunit.assert");
var name = _.FullName;
return name.Contains("xunit.core") ||
name.Contains("xunit.assert");
});
}

Expand Down

0 comments on commit 8061343

Please sign in to comment.