コード例 #1
0
        public void Setup()
        {
            ActionHasBeenTriggered = false ;
            ActionHasNotBeenTriggered = true ;

            _menu = new ToolStripMenuItem();
            _panel = new Panel();
            _toolbar = new ToolStrip();

            _element = new MenuElement(ElementCaption, ElementTooltip, ElementGlyph);

            _element.Action += ActionTriggered;
        }
コード例 #2
0
 private void AddToolbarMenu(MenuElement menuElement)
 {
     menuElement.AddTo(_toolbar);
 }
コード例 #3
0
        public void Can_create_with_no_arguments()
        {
            var element = new MenuElement();

            Assert.That(element, Is.Not.Null);
        }