Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void Should_Stop_Listening_When_TextView_Closed()

autoMoqer.Verify<IEventAggregator>(eventAggregator => eventAggregator.RemoveListener(bufferLineCoverage));
mockTextView.VerifyRemove(textView => textView.Closed -= It.IsAny<EventHandler>(), Times.Once);
mockTextBuffer.VerifyRemove(textBuffer => textBuffer.Changed -= It.IsAny<EventHandler<TextContentChangedEventArgs>>(), Times.Once);
mockTextBuffer.VerifyRemove(textBuffer => textBuffer.ChangedOnBackground -= It.IsAny<EventHandler<TextContentChangedEventArgs>>(), Times.Once);
var mockAppOptionsProvider = autoMoqer.GetMock<IAppOptionsProvider>();
mockAppOptionsProvider.VerifyRemove(appOptionsProvider => appOptionsProvider.OptionsChanged -= It.IsAny<Action<IAppOptions>>(), Times.Once);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void AppOptionsChanged(IAppOptions appOptions)
void textViewClosedHandler(object s, EventArgs e)
{
this.UpdateDynamicCoverageStore((s as ITextView).TextSnapshot);
this.textBuffer.Changed -= this.TextBuffer_ChangedOnBackground;
this.textBuffer.ChangedOnBackground -= this.TextBuffer_ChangedOnBackground;
this.textBuffer.ContentTypeChanged -= this.ContentTypeChanged;
textInfo.TextView.Closed -= textViewClosedHandler;
appOptionsProvider.OptionsChanged -= AppOptionsChanged;
Expand Down
Loading