Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            _originalShowAheadBehindData    = AppSettings.ShowAheadBehindData;
            AppSettings.ShowAheadBehindData = true;

            _aheadBehindDataProvider = Substitute.For <IAheadBehindDataProvider>();

            _sut = new ToolStripPushButton();
            _sut.Initialize(_aheadBehindDataProvider, true);
        }