public TreeNodeMouseClickEventParams() { mTreeView = null; mContain = null; mX = -1; mY = -1; }
public MenuStrip() { mMenuItems = new List<MenuItem>(); mDockStyle = @"None"; mMenuStrip = null; mContain = null; }
public override void _runCommand() { IContain contain_ = this._getOwner() as IContain; IForm form_ = contain_._contain() as IForm; form_._runClose(); }
public ToolPanel() { mToolStrips = new List<ToolStrip>(); mToolStripPanel = null; mDockStyle = @"None"; mContain = null; }
private static IMore <IEnumerable <KeyValuePair <TKey, TValue> > > AddKeyMatcher <TKey, TValue>( IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation, TKey key, Func <string> customMessage) { continuation.SetMetadata(CONTINUATION_KEY, key); return(continuation.AddMatcher(collection => { var passed = collection != null && TryFindValueForKey(collection, key, out var _); return new MatcherResult( passed, FinalMessageFor( () => new[] { "Expected", collection.LimitedPrint(), $"{passed.AsNot()}to contain key", key?.Stringify() }, customMessage ) ); })); }
/// <summary> /// Tests if the provided collection contains the required key. /// Upcast from sbyte to long for convenience /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="key">Key to look for</param> /// <typeparam name="TKey">Type of the dictionary keys</typeparam> public static IDictionaryValueContinuation <long> Key <TKey>( this IContain <IEnumerable <KeyValuePair <TKey, sbyte> > > continuation, TKey key ) { return(continuation.Key(key, NULL_STRING)); }
public RadioButton() { mRadioButton = null; mPoint = new Point2I(); mSize = new Size2I(); mContain = null; mText = null; }
/// <summary> /// Tests if the provided collection contains the required key. /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="key">Key to look for</param> /// <param name="customMessage">Custom message to add to failure messages</param> /// <typeparam name="TKey">Type of the dictionary keys</typeparam> /// <typeparam name="TValue">Type of the dictionary values</typeparam> public static IDictionaryValueContinuation <TValue> Key <TKey, TValue>( this IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation, TKey key, string customMessage ) { return(continuation.Key(key, () => customMessage)); }
public override void _runCommand() { IContain contain_ = this._getOwner() as IContain; ISideBar sideBar_ = contain_._childControl("sideBar") as ISideBar; SideBarSingleton sideBarSingleton_ = __singleton <SideBarSingleton> ._instance(); sideBarSingleton_._setSideBar(sideBar_); }
public ToolStrip() { mMemberStreams = new List<MemberStream>(); mToolStripItemAdapts = new List<ToolStripItemAdapt>(); mDockStyle = @"None"; mToolStrip = null; mVisible = false; mContain = null; }
public DockPad() { mDockStyle = @"None"; mDockFrame = null; mCaption = null; mContain = null; mIcon = null; mPadName = null; }
/// <summary> /// Starts continuation to match any items in the source collection /// </summary> /// <param name="contain">Continuation to continue from</param> /// <typeparam name="T">Type of items in collection</typeparam> /// <returns></returns> public static ICountMatchContinuation <IEnumerable <T> > Any <T>( this IContain <IEnumerable <T> > contain ) { return(new CountMatchContinuation <IEnumerable <T> >( contain, CountMatchMethods.Any, 0 )); }
public RadioButtonEx() { mCheckCommand = null; mCheckCmd = null; mRadioButton = null; mPoint = new Point2I(); mSize = new Size2I(); mContain = null; mText = null; }
public Button() { mPoint = new Point2I(); mSize = new Size2I(); mCommand = null; mOnClick = null; mButton = null; mContain = null; mText = null; mEnable = true; }
public ComboBox() { mComboBoxItems = new List<ComboBoxItem>(); mCommands = new List<ICommand>(); m_tSelectTextSlot = null; mPoint = new Point2I(); mSize = new Size2I(); mComboBox = null; mContain = null; mEnable = true; }
public override void _runCommand() { IContain contain_ = this._getOwner() as IContain; ITreeView treeView_ = contain_._childControl("treeView1") as ITreeView; NewProjectUrl newProjectUrl_ = new NewProjectUrl(); string newUrl_ = @"rid://notepad.implement.newProjectUrl"; newProjectUrl_._runLoad(newUrl_); newProjectUrl_._runInit(); newProjectUrl_._addTreeNode(treeView_); }
public SideBar() { mSideTabs = new List<SideTab>(); mSideBarControl = null; mDockStyle = @"None"; mSideBarUrl = null; mActiveTab = null; mInitCommand = null; mInitCmd = null; mContain = null; }
public MenuItem() { mMemberStreams = new List<MemberStream>(); mMenuItems = new List<MenuItem>(); mToolStripMenuItem = null; mCommand = null; mCmdStr = null; mContain = null; mText = null; mIcon = null; }
/// <summary> /// Tests if the provided collection contains the required key. /// Upcast from float to double for convenience /// </summary> /// <param name="continuation">Continuation to operate on</param> /// <param name="key">Key to look for</param> /// <param name="customMessageGenerator">Generates a custom message to add to failure messages</param> /// <typeparam name="TKey">Type of the dictionary keys</typeparam> public static IDictionaryValueContinuation <double> Key <TKey>( this IContain <IEnumerable <KeyValuePair <TKey, float> > > continuation, TKey key, Func <string> customMessageGenerator ) { AddKeyMatcher(continuation, key, customMessageGenerator); return(CreateValueContinuationFor <TKey, float, double>( continuation, key )); }
/// <summary> /// Match exactly N elements with following matchers /// </summary> /// <param name="contain">contain continuation</param> /// <param name="howMany">how many items to match</param> /// <typeparam name="T">Type of item to match</typeparam> /// <returns>continuation be used: .Equal.To()</returns> public static ICountMatchContinuation <IEnumerable <T> > Exactly <T>( this IContain <IEnumerable <T> > contain, int howMany ) { CheckContain(contain); return(new CountMatchContinuation <IEnumerable <T> >( contain, CountMatchMethods.Exactly, howMany )); }
public static void Child( this IContain <Container> contain, Sub sub) { contain.AddMatcher(actual => { var passed = (actual?.Subs ?? new Sub[0]) .Any(c => c.Name == sub.Name); return(new MatcherResult( passed, $"Expected {actual.Stringify()} {passed.AsNot()}to contain sub {sub.Name}")); }); }
public TreeView() { mShowRootLines = false; mDockStyle = @"None"; mInitCommand = null; mInitCmd = null; mTreeView = null; mContain = null; mSize = null; mLoadCommand = null; mLoadCmd = null; mTreeNodes = new List<ITreeNode>(); }
public ListView() { mDockStyle = @"None"; mViewStyle = "List"; mContain = null; mInitCommand = null; mInitCmd = null; mLoadCommand = null; mLoadCmd = null; mItemActivateCommand = null; mItemActivateCmd = null; mSelectedIndexChangedCommand = null; mSelectedIndexChangedCmd = null; mSize = null; }
public static void Shape( this IContain <Rectangle> contain, Rectangle other ) { contain.AddMatcher(actual => { var passed = actual.Left <= other.Left && actual.Right >= other.Right && actual.Top <= other.Top && actual.Bottom >= other.Bottom; return(new MatcherResult( passed, () => $"Expected {actual.Stringify()} {passed.AsNot()}to contain {other.Stringify()}")); }); }
public static void Only( this IContain <MemoryStream> contain, byte[] data) { contain.AddMatcher(actual => { var actualData = actual.ReadAllBytes(); var lengthsMatch = actualData.Length == data.Length; var passed = lengthsMatch && actualData.DeepEquals(data); return(new MatcherResult( passed, () => lengthsMatch ? "Stream data matches expected length, but not expected content" : "Stream data does not match expected content at all" )); }); }
public override void _runCommand() { IContain contain_ = this._getOwner() as IContain; IForm form_ = contain_._contain() as IForm; ITextBox fileUrlTextBox_ = form_._childControl("panel1/fileUrl") as ITextBox; ITextBox fileNameTextBox_ = form_._childControl("panel1/fileName") as ITextBox; string fileUrl_ = fileUrlTextBox_._getText(); string fileName_ = fileNameTextBox_._getText(); if (null == fileUrl_ || "" == fileUrl_) { return; } if (null == fileName_ || "" == fileName_) { return; } IListView listView_ = form_._childControl("panel2/listView1") as IListView; IList <IListItem> listItems_ = listView_._selectedItems(); if (listItems_.Count <= 0) { return; } NewProjectNodeCommand newProjectNodeCommand_ = listItems_[0] as NewProjectNodeCommand; string commandUrl_ = newProjectNodeCommand_._getCommandUrl(); NewProjectArg newProjectArg_ = new NewProjectArg(fileUrl_, fileName_); PlatformSingleton platformSingleton_ = __singleton <PlatformSingleton> ._instance(); ICommand command_ = platformSingleton_._findInterface <ICommand>(commandUrl_); command_._setOwner(newProjectArg_); command_._runCommand(); form_._runClose(); }
public virtual void _setContain(IContain nContain) { }
public void _setContain(IContain nContain) { mContain = nContain; }
public ToolStripItemAdapt() { mToolStripItem = null; mContain = null; mType = null; }
public MultiControl() { mControlName = null; mContain = null; }
public override void _setContain(IContain nContain) { mContain = nContain; base._setContain(nContain); }
public Control() { mControlName = null; mContain = null; }
public RadioButtonCheckedChangedArg() { mContain = null; mChecked = false; }
public Widgets() { mWidgets = new List<IWidget>(); mContain = null; mName = null; }
public ToolStripItem() { mContain = null; }
public override void _setContain(IContain nContain) { mContain = nContain; }