Skip to content

Commit f88592f

Browse files
committed
Modified Reference dictionary content types
1 parent 0e74b1d commit f88592f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RubberduckTests/Mocks/MockVbeBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class MockVbeBuilder
5454
["ADOR"] = LibraryPathAdoRecordset
5555
};
5656

57-
private static readonly Dictionary<string, Action<MockProjectBuilder>> addReferenceActions = new Dictionary<string, Action<MockProjectBuilder>>
57+
private static readonly Dictionary<string, Func<MockProjectBuilder, MockProjectBuilder>> AddReference = new Dictionary<string, Func<MockProjectBuilder, MockProjectBuilder>>
5858
{
5959
["Excel"] = (MockProjectBuilder builder) => builder.AddReference("Excel", LibraryPathMsExcel, 1, 8, true),
6060
["VBA"] = (MockProjectBuilder builder) => builder.AddReference("VBA", LibraryPathVBA, 4, 2, true),
@@ -231,7 +231,7 @@ public static Mock<IVBE> BuildFromModules(string projectName, IEnumerable<(strin
231231

232232
foreach (var name in libraryNames)
233233
{
234-
addReferenceActions[name](builder);
234+
AddReference[name](builder);
235235
}
236236

237237
var project = builder.Build();

0 commit comments

Comments
 (0)