File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
test/coverlet.core.tests/Coverage Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ public void TestCoverageUnloadWithParameters()
232232 File . Copy ( pdb , Path . Combine ( directory . FullName , Path . GetFileName ( pdb ) ) , true ) ;
233233
234234 var mockInstrumentationHelper = new Mock < IInstrumentationHelper > ( ) ;
235+ mockInstrumentationHelper . Setup ( x => x . RestoreOriginalModule ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) ;
235236
236237 var parameters = new CoverageParameters
237238 {
@@ -266,9 +267,10 @@ public void TestCoverageUnloadWithNoParameters()
266267 File . Copy ( pdb , Path . Combine ( directory . FullName , Path . GetFileName ( pdb ) ) , true ) ;
267268
268269 var mockInstrumentationHelper = new Mock < IInstrumentationHelper > ( ) ;
269- mockInstrumentationHelper
270- . Setup ( x => x . SelectModules ( It . IsAny < IEnumerable < string > > ( ) , It . IsAny < string [ ] > ( ) , It . IsAny < string [ ] > ( ) ) )
271- . Returns ( new List < string > ( ) { "ModuleX" } ) ;
270+ mockInstrumentationHelper
271+ . Setup ( x => x . SelectModules ( It . IsAny < IEnumerable < string > > ( ) , It . IsAny < string [ ] > ( ) , It . IsAny < string [ ] > ( ) ) )
272+ . Returns ( new List < string > ( ) { "ModuleX" } ) ;
273+ mockInstrumentationHelper . Setup ( x => x . RestoreOriginalModule ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) ;
272274
273275 var parameters = new CoverageParameters
274276 {
You can’t perform that action at this time.
0 commit comments