public void ErrorListInfoBarController_RefreshShowInfoBar_ClickClose_UnregisterEvents()
{
// Arrange
this.SetBindingMode(SonarLintMode.LegacyConnected);
var testSubject = new ErrorListInfoBarController(this.host, this.unboundProjectFinder);
this.ConfigureLoadedSolution();
testSubject.Refresh();
RunAsyncAction();
// Sanity
ConfigurableInfoBar infoBar = this.infoBarManager.AssertHasAttachedInfoBar(ErrorListInfoBarController.ErrorListToolWindowGuid);
VerifyInfoBar(infoBar);
// Act
infoBar.SimulateClosedEvent();
// Assert
infoBar.VerifyAllEventsUnregistered();
this.teamExplorerController.ShowConnectionsPageCallsCount.Should().Be(0);
}