コード例 #1
0
        public void Should_should_show_nothing_if_no_revision_supplied()
        {
            _copyContextMenuItem.SetRevisionFunc(() => null);

            _copyContextMenuItem.ShowDropDown();

            _copyContextMenuItem.DropDownItems.Count.Should().Be(0);
        }
コード例 #2
0
        private ToolStripItem[] CreateCopyContextMenuItems()
        {
            var copyContextMenuItem = new CopyContextMenuItem();

            copyContextMenuItem.SetRevisionFunc(() => _scriptHost.GetSelectedRevisions());

            return(new ToolStripItem[]
            {
                copyContextMenuItem,
                new ToolStripSeparator()
            });
        }