Index: test/DeltaShell/DeltaShell.Tests/TestObjects/TestMenuItem.cs =================================================================== diff -u -r91692bb0416bdff85f51b10a3c151d67721d9319 -r5fc71a385897af92ccb092f2f969b5709afab85a --- test/DeltaShell/DeltaShell.Tests/TestObjects/TestMenuItem.cs (.../TestMenuItem.cs) (revision 91692bb0416bdff85f51b10a3c151d67721d9319) +++ test/DeltaShell/DeltaShell.Tests/TestObjects/TestMenuItem.cs (.../TestMenuItem.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -1,39 +1,34 @@ using System; +using System.Collections; using System.Collections.Generic; using DelftTools.Controls; using DelftTools.Shell.Gui; namespace DeltaShell.Tests.TestObjects { - public class TestMenuItem: IMenuItem + public class TestMenuItem : IMenuItem { + public event EventHandler Click; private readonly IList children = new List(); - private string text; - private bool enabled; - private object tag; - public IList Items - { - get { return children; } - } - - public string Text + public IList Items { - get { return text; } - set { text = value; } + get + { + return children; + } } + public object Tag { get; set; } + + public string Text { get; set; } + public string Tooltip { get; set; } public string Category { get; set; } - public bool Enabled - { - get { return enabled; } - set { enabled = value; } - } + public bool Enabled { get; set; } - public string Name { get @@ -46,22 +41,20 @@ } } - - public object Tag + public string Shortcut { - get { return tag; } - set { tag = value; } + get + { + throw new NotImplementedException("The method or operation is not implemented."); + } + set + { + throw new NotImplementedException("The method or operation is not implemented."); + } } - public event EventHandler Click; - - public IMenuItem AppendSub(bool newGroup, IGuiCommand command, EventHandler eventHandler) + public ICommand Command { - throw new NotImplementedException("The method or operation is not implemented."); - } - - public string Shortcut - { get { throw new NotImplementedException("The method or operation is not implemented."); @@ -72,7 +65,9 @@ } } - public ICommand Command + #region IMenuItem Members + + public IList ActiveForViews { get { @@ -84,6 +79,31 @@ } } + #endregion + + public IMenuItem AppendSub(bool newGroup, IGuiCommand command, EventHandler eventHandler) + { + throw new NotImplementedException("The method or operation is not implemented."); + } + + #region IEnumerable Members + + public IEnumerator GetEnumerator() + { + throw new NotImplementedException("The method or operation is not implemented."); + } + + #endregion + + #region IEnumerable Members + + IEnumerator IEnumerable.GetEnumerator() + { + throw new NotImplementedException("The method or operation is not implemented."); + } + + #endregion + #region IMenuItemCollection Members public IMenuItem this[string name] @@ -170,12 +190,18 @@ public int Count { - get { throw new NotImplementedException("The method or operation is not implemented."); } + get + { + throw new NotImplementedException("The method or operation is not implemented."); + } } public bool IsReadOnly { - get { throw new NotImplementedException("The method or operation is not implemented."); } + get + { + throw new NotImplementedException("The method or operation is not implemented."); + } } public bool Remove(IMenuItem item) @@ -184,41 +210,5 @@ } #endregion - - #region IEnumerable Members - - public IEnumerator GetEnumerator() - { - throw new NotImplementedException("The method or operation is not implemented."); - } - - #endregion - - #region IEnumerable Members - - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - throw new NotImplementedException("The method or operation is not implemented."); - } - - #endregion - - #region IMenuItem Members - - - public IList ActiveForViews - { - get - { - throw new NotImplementedException("The method or operation is not implemented."); - } - set - { - throw new NotImplementedException("The method or operation is not implemented."); - } - } - - #endregion - } } \ No newline at end of file