Skip to content

Commit a960c30

Browse files
committed
Modified overload to use param array
Removed unreferenced overload
1 parent 73a67cc commit a960c30

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

RubberduckTests/Inspections/InspectionTestsBase.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ public IEnumerable<IInspectionResult> InspectionResultsForModules(IEnumerable<(s
3131
return InspectionResults(vbe);
3232
}
3333

34-
public IEnumerable<IInspectionResult> InspectionResultsForModules((string name, string content, ComponentType componentType) module, string library)
35-
=> InspectionResultsForModules(new (string, string, ComponentType)[] { module }, new string[] { library });
34+
public IEnumerable<IInspectionResult> InspectionResultsForModules((string name, string content, ComponentType componentType) module, params string[] libraries)
35+
=> InspectionResultsForModules(new (string, string, ComponentType)[] { module }, libraries);
3636

3737
public IEnumerable<IInspectionResult> InspectionResultsForModules(IEnumerable<(string name, string content, ComponentType componentType)> modules, string library)
3838
=> InspectionResultsForModules(modules, new string[] { library });
3939

40-
public IEnumerable<IInspectionResult> InspectionResultsForModules((string name, string content, ComponentType componentType) module, IEnumerable<string> libraries)
41-
=> InspectionResultsForModules(new(string, string, ComponentType)[] { module }, libraries);
42-
4340
public IEnumerable<IInspectionResult> InspectionResultsForModules(IEnumerable<(string name, string content, ComponentType componentType)> modules, IEnumerable<string> libraries)
4441
{
4542
var vbe = MockVbeBuilder.BuildFromModules(modules, libraries).Object;

0 commit comments

Comments
 (0)