@@ -196,25 +196,7 @@ public static Mock<IVBE> BuildFromModules(params (string name, string content, C
196
196
/// Builds a mock VBE containing one project with multiple modules.
197
197
/// </summary>
198
198
public static Mock < IVBE > BuildFromModules ( IEnumerable < ( string name , string content , ComponentType componentType ) > modules )
199
- {
200
- var vbeBuilder = new MockVbeBuilder ( ) ;
201
-
202
- var builder = vbeBuilder . ProjectBuilder ( TestProjectName , ProjectProtection . Unprotected ) ;
203
- foreach ( var ( name , content , componentType ) in modules )
204
- {
205
- builder . AddComponent ( name , componentType , content ) ;
206
- }
207
-
208
- var project = builder . Build ( ) ;
209
- var vbe = vbeBuilder . AddProject ( project ) . Build ( ) ;
210
-
211
- var component = project . Object . VBComponents [ 0 ] ;
212
-
213
- vbe . Object . ActiveVBProject = project . Object ;
214
- vbe . Object . ActiveCodePane = component . CodeModule . CodePane ;
215
-
216
- return vbe ;
217
- }
199
+ => BuildFromModules ( modules , Enumerable . Empty < string > ( ) ) ;
218
200
219
201
/// <summary>
220
202
/// Builds a mock VBE containing one project with one module and one library.
@@ -229,7 +211,7 @@ public static Mock<IVBE> BuildFromModules((string name, string content, Componen
229
211
=> BuildFromModules ( new ( string , string , ComponentType ) [ ] { module } , libraries ) ;
230
212
231
213
/// <summary>
232
- /// Builds a mock VBE containing one project with one or more modules using one or more libraries.
214
+ /// Builds a mock VBE containing one project with multiple modules and libraries.
233
215
/// </summary>
234
216
public static Mock < IVBE > BuildFromModules ( IEnumerable < ( string name , string content , ComponentType componentType ) > modules , IEnumerable < string > libraryNames )
235
217
{
0 commit comments