public void DisplayAheadBehindInformation_should_not_display_anything_if_does_not_support_ahead_behind() { _sut.Initialize(_aheadBehindDataProvider, false); _sut.DisplayAheadBehindInformation("any-branchName"); _sut.DisplayStyle.Should().Be(ToolStripItemDisplayStyle.Image); _sut.ToolTipText.Should().Be("Push"); _sut.Image.RawFormat.GetHashCode().Should().Be(PushImageHashCode); }
public void Setup() { _originalShowAheadBehindData = AppSettings.ShowAheadBehindData; AppSettings.ShowAheadBehindData = true; _aheadBehindDataProvider = Substitute.For <IAheadBehindDataProvider>(); _sut = new ToolStripPushButton(); _sut.Initialize(_aheadBehindDataProvider, true); }