From 8061343ee4f3b783dfc966253d315b3c31b45112 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 24 Nov 2023 23:00:18 +1100 Subject: [PATCH] Update XUnit2Reporter.cs --- .../Reporters/TestFrameworks/XUnit2Reporter.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ApprovalTests/Reporters/TestFrameworks/XUnit2Reporter.cs b/src/ApprovalTests/Reporters/TestFrameworks/XUnit2Reporter.cs index 5e27d9be..af8c73f0 100644 --- a/src/ApprovalTests/Reporters/TestFrameworks/XUnit2Reporter.cs +++ b/src/ApprovalTests/Reporters/TestFrameworks/XUnit2Reporter.cs @@ -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"); }); }