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; }
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); }