File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
FineCodeCoverageTests/Editor/DynamicCoverage
SharedProject/Editor/DynamicCoverage/Management Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public void Should_Stop_Listening_When_TextView_Closed()
111111
112112 autoMoqer . Verify < IEventAggregator > ( eventAggregator => eventAggregator . RemoveListener ( bufferLineCoverage ) ) ;
113113 mockTextView . VerifyRemove ( textView => textView . Closed -= It . IsAny < EventHandler > ( ) , Times . Once ) ;
114- mockTextBuffer . VerifyRemove ( textBuffer => textBuffer . Changed -= It . IsAny < EventHandler < TextContentChangedEventArgs > > ( ) , Times . Once ) ;
114+ mockTextBuffer . VerifyRemove ( textBuffer => textBuffer . ChangedOnBackground -= It . IsAny < EventHandler < TextContentChangedEventArgs > > ( ) , Times . Once ) ;
115115 var mockAppOptionsProvider = autoMoqer . GetMock < IAppOptionsProvider > ( ) ;
116116 mockAppOptionsProvider . VerifyRemove ( appOptionsProvider => appOptionsProvider . OptionsChanged -= It . IsAny < Action < IAppOptions > > ( ) , Times . Once ) ;
117117 }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ void AppOptionsChanged(IAppOptions appOptions)
9090 void textViewClosedHandler ( object s , EventArgs e )
9191 {
9292 this . UpdateDynamicCoverageStore ( ( s as ITextView ) . TextSnapshot ) ;
93- this . textBuffer . Changed -= this . TextBuffer_ChangedOnBackground ;
93+ this . textBuffer . ChangedOnBackground -= this . TextBuffer_ChangedOnBackground ;
9494 this . textBuffer . ContentTypeChanged -= this . ContentTypeChanged ;
9595 textInfo . TextView . Closed -= textViewClosedHandler ;
9696 appOptionsProvider . OptionsChanged -= AppOptionsChanged ;
You can’t perform that action at this time.
0 commit comments