Skip to content

Commit 7aff1be

Browse files
authored
Fix running published analyzer tests (#631)
1 parent 8972557 commit 7aff1be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Logging/Logging.Analyzers/test/DiagnosticVerifier.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,17 @@ public bool TryResolveAssemblyPaths(CompilationLibrary library, List<string> ass
174174
if (File.Exists(dll))
175175
{
176176
assemblies.Add(dll);
177-
return true;
177+
continue;
178178
}
179179

180180
dll = Path.Combine(Directory.GetCurrentDirectory(), Path.GetFileName(assembly));
181181
if (File.Exists(dll))
182182
{
183183
assemblies.Add(dll);
184-
return true;
185184
}
186185
}
187186

188-
return false;
187+
return assemblies.Count > 0;
189188
}
190189
}
191190
}

0 commit comments

Comments
 (0)