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;
        }
Exemplo n.º 2
0
 private void AddToolbarMenu(MenuElement menuElement)
 {
     menuElement.AddTo(_toolbar);
 }
        public void Can_create_with_no_arguments()
        {
            var element = new MenuElement();

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