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 @@ -190,6 +190,7 @@ public void TestCoverageUnloadWithParameters()
190190 File . Copy ( pdb , Path . Combine ( directory . FullName , Path . GetFileName ( pdb ) ) , true ) ;
191191
192192 var mockInstrumentationHelper = new Mock < IInstrumentationHelper > ( ) ;
193+ mockInstrumentationHelper . Setup ( x => x . RestoreOriginalModule ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) ;
193194
194195 var parameters = new CoverageParameters
195196 {
@@ -224,9 +225,10 @@ public void TestCoverageUnloadWithNoParameters()
224225 File . Copy ( pdb , Path . Combine ( directory . FullName , Path . GetFileName ( pdb ) ) , true ) ;
225226
226227 var mockInstrumentationHelper = new Mock < IInstrumentationHelper > ( ) ;
227- mockInstrumentationHelper
228- . Setup ( x => x . SelectModules ( It . IsAny < IEnumerable < string > > ( ) , It . IsAny < string [ ] > ( ) , It . IsAny < string [ ] > ( ) ) )
229- . Returns ( new List < string > ( ) { "ModuleX" } ) ;
228+ mockInstrumentationHelper
229+ . Setup ( x => x . SelectModules ( It . IsAny < IEnumerable < string > > ( ) , It . IsAny < string [ ] > ( ) , It . IsAny < string [ ] > ( ) ) )
230+ . Returns ( new List < string > ( ) { "ModuleX" } ) ;
231+ mockInstrumentationHelper . Setup ( x => x . RestoreOriginalModule ( It . IsAny < string > ( ) , It . IsAny < string > ( ) ) ) ;
230232
231233 var parameters = new CoverageParameters
232234 {
You can’t perform that action at this time.
0 commit comments