1 implementation of Dynamic
System.Private.Windows.Core.TestUtilities (1)
TestAccessor.cs (1)
83public dynamic Dynamic => _dynamicWrapper;
585 references to Dynamic
ComDisabled.Tests (3)
DataObjectComTests.cs (3)
18dynamic controlAccessor = typeof(Control).TestAccessor().Dynamic; 40dynamic accessor = typeof(Control).TestAccessor().Dynamic; 58dynamic accessor = typeof(Control).TestAccessor().Dynamic;
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceTests.cs (1)
38return type.TestAccessor().Dynamic;
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBaseTests.cs (1)
15return testAccessor.Dynamic.GetApplicationInstanceID(assembly);
System.Printing.Tests (12)
System\Printing\IndexedProperties\PrintStringPropertyTests.cs (12)
16bool disposed = property.TestAccessor().Dynamic.IsDisposed; 18bool initialized = property.TestAccessor().Dynamic.IsInitialized; 28bool disposed = property.TestAccessor().Dynamic.IsDisposed; 30bool initialized = property.TestAccessor().Dynamic.IsInitialized; 46bool initialized = property.TestAccessor().Dynamic.IsInitialized; 70bool disposed = property.TestAccessor().Dynamic.IsDisposed; 72bool initialized = property.TestAccessor().Dynamic.IsInitialized; 85bool initialized = property.TestAccessor().Dynamic.IsInitialized; 91initialized = property.TestAccessor().Dynamic.IsInitialized; 97initialized = property.TestAccessor().Dynamic.IsInitialized; 108bool disposed = property.TestAccessor().Dynamic.IsDisposed; 110bool initialized = property.TestAccessor().Dynamic.IsInitialized;
System.Windows.Forms.Analyzers.CSharp.Tests (1)
Generators\ProjectFileReaderTests.cs (1)
18private static readonly dynamic s_static = typeof(ProjectFileReader).TestAccessor().Dynamic;
System.Windows.Forms.Design.Tests (60)
ControlDesignerTests.cs (13)
192_designer.TestAccessor().Dynamic.WndProc(ref m); 234_designer.TestAccessor().Dynamic._behaviorService = behaviorService; 235_designer.TestAccessor().Dynamic.Locked = true; 255_designer.TestAccessor().Dynamic._behaviorService = null; 272_designer.TestAccessor().Dynamic._behaviorService = behaviorService; 277((SelectionRules)glyphs[0].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 279((SelectionRules)glyphs[1].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 281((SelectionRules)glyphs[2].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 283((SelectionRules)glyphs[3].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 285((SelectionRules)glyphs[4].TestAccessor().Dynamic.rules).Should().Be(SelectionRules.None); 301_designer.TestAccessor().Dynamic._behaviorService = behaviorService; 324((SelectionRules)glyphs[i].TestAccessor().Dynamic.rules).Should().Be(expectedGlyphs[i].rules); 377bool _ctrlSelect = (bool)_designer.TestAccessor().Dynamic._ctrlSelect;
System\Windows\Forms\Design\AnchorEditorTests.cs (1)
91var actual = (UIA_CONTROLTYPE_ID)(int)item.AccessibilityObject.TestAccessor().Dynamic
System\Windows\Forms\Design\BindingSourceDesignerTests.cs (3)
19bool originalValue = designer.TestAccessor().Dynamic._bindingUpdatedByUser; 23bool updatedValue = designer.TestAccessor().Dynamic._bindingUpdatedByUser; 45designer.TestAccessor().Dynamic.OnComponentRemoving(null, args);
System\Windows\Forms\Design\ContentAlignmentEditorTests.cs (1)
31var actual = (UIA_CONTROLTYPE_ID)(int)item.AccessibilityObject.TestAccessor().Dynamic
System\Windows\Forms\Design\ContextMenuStripActionListTests.cs (2)
60ToolStripDropDown toolStripDropDownValue = (ToolStripDropDown)_actionList.TestAccessor().Dynamic._toolStripDropDown; 145_actionList.TestAccessor().Dynamic._toolStripDropDown = _toolStripDropDown;
System\Windows\Forms\Design\DataGridViewCellStyleBuilderTests.cs (1)
37ITypeDescriptorContext result = builder.TestAccessor().Dynamic._context;
System\Windows\Forms\Design\DataGridViewColumnDesignerTests.cs (3)
47designer.TestAccessor().Dynamic.Name = "NewColumnName"; 59designer.TestAccessor().Dynamic.Width = 150; 72((DataGridView)designer.TestAccessor().Dynamic._liveDataGridView).Should().Be(dataGridView);
System\Windows\Forms\Design\DataGridViewComponentPropertyGridSiteTests.cs (1)
41site.TestAccessor().Dynamic._inGetService = true;
System\Windows\Forms\Design\DesignerExtendersTests.cs (4)
20IExtenderProvider[] providers = designerExtenders.TestAccessor().Dynamic._providers; 21IExtenderProviderService extenderService = designerExtenders.TestAccessor().Dynamic._extenderService; 30providers = designerExtenders.TestAccessor().Dynamic._providers; 31extenderService = designerExtenders.TestAccessor().Dynamic._extenderService;
System\Windows\Forms\Design\FormatStringDialogTests.cs (3)
81dynamic? okButtonField = _formatStringDialog.TestAccessor().Dynamic._okButton; 82dynamic? cancelButtonField = _formatStringDialog.TestAccessor().Dynamic._cancelButton; 83dynamic? formatControlField = _formatStringDialog.TestAccessor().Dynamic._formatControl1;
System\Windows\Forms\Design\FormatStringEditorTests.cs (2)
83_editor.TestAccessor().Dynamic._formatStringDialog = dialog; 84dialog.TestAccessor().Dynamic._dirty = true;
System\Windows\Forms\Design\InheritanceUITests.cs (6)
60ToolTip toolTip = _inheritanceUI.TestAccessor().Dynamic._toolTip; 85ToolTip toolTip = _inheritanceUI.TestAccessor().Dynamic._toolTip; 109ToolTip toolTip = _inheritanceUI.TestAccessor().Dynamic._toolTip; 121ToolTip toolTip = _inheritanceUI.TestAccessor().Dynamic._toolTip; 141_inheritanceUI.TestAccessor().Dynamic._toolTip = mockToolTip.Object; 155ToolTip toolTip = _inheritanceUI.TestAccessor().Dynamic._toolTip;
System\Windows\Forms\Design\MaskDesignerDialogTests.cs (6)
30using TextBox txtBoxMask = _dialog.TestAccessor().Dynamic._txtBoxMask; 39_dialog.TestAccessor().Dynamic._maskedTextBox.ValidatingType = typeof(DateTime); 40_dialog.TestAccessor().Dynamic.btnOK_Click(null, EventArgs.Empty); 62List<MaskDescriptor> initialDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors; 66List<MaskDescriptor> maskDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors; 83List<MaskDescriptor> maskDescriptors = _dialog.TestAccessor().Dynamic._maskDescriptors;
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDownTests.cs (6)
15dropDown.TestAccessor().Dynamic._cancel = true; 26dropDown.TestAccessor().Dynamic._cancel = false; 36bool processDialogKey = dropDown.TestAccessor().Dynamic.ProcessDialogKey(Keys.Escape); 37bool cancel = dropDown.TestAccessor().Dynamic._cancel; 48using ErrorProvider errorProvider = dropDown.TestAccessor().Dynamic._errorProvider; 51using MaskedTextBox dropDownMaskedTextBox = dropDown.TestAccessor().Dynamic._cloneMtb;
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (3)
51((SplitterPanel)splitterPanelDesigner.TestAccessor().Dynamic._splitterPanel).Should().Be(splitterPanel); 52((IDesignerHost)splitterPanelDesigner.TestAccessor().Dynamic._designerHost).Should().Be(mockDesignerHost.Object); 53((SplitContainerDesigner)splitterPanelDesigner.TestAccessor().Dynamic._splitContainerDesigner).Should().Be(splitContainerDesigner);
System\Windows\Forms\Design\TabControlDesignerTests.cs (2)
154designer.TestAccessor().Dynamic._forwardOnDrag = true; 173designer.TestAccessor().Dynamic._forwardOnDrag = true;
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
156_actionList.TestAccessor().Dynamic._toolStrip = statusStrip;
TreeNodeCollectionEditorTests.cs (2)
21string helpTopic = collectionEditor.TestAccessor().Dynamic.HelpTopic; 33colletionForm = collectionEditor.TestAccessor().Dynamic.CreateCollectionForm();
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\Automation\TestAccessors.UiaTextRangeTestAccessor.cs (1)
13private static readonly dynamic s_static = typeof(UiaTextRange).TestAccessor().Dynamic;
System.Windows.Forms.Tests (488)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (5)
552Assert.Equal((AccessibleObject)first.TestAccessor().Dynamic.NcAccessibilityObject, firstChild); 581Assert.Equal(isSystemAccessible, (bool)target.TestAccessor().Dynamic._isSystemWrapper); 600Assert.True((bool)target.TestAccessor().Dynamic._isSystemWrapper); 2164AccessibleObject accessibleObject = control.TestAccessor().Dynamic.NcAccessibilityObject; 2758Assert.NotEmpty(accessibleObject.TestAccessor().Dynamic.RuntimeId);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (3)
73Assert.Equal(0, accessibleObject.GetChild(0).TestAccessor().Dynamic.CurrentIndex); 74Assert.Equal(1, accessibleObject.GetChild(1).TestAccessor().Dynamic.CurrentIndex); 75Assert.Equal(2, accessibleObject.GetChild(2).TestAccessor().Dynamic.CurrentIndex);
System\Windows\Forms\AccessibleObjects\ColumnHeader.ListViewColumnHeaderAccessibleObjectTests.cs (5)
52Assert.Null(columnHeader.TestAccessor().Dynamic._accessibilityObject); 66Assert.Null(columnHeader.TestAccessor().Dynamic._accessibilityObject); 80Assert.Null(columnHeader.TestAccessor().Dynamic._accessibilityObject); 94Assert.Null(columnHeader.TestAccessor().Dynamic._accessibilityObject); 101Assert.NotNull(columnHeader.TestAccessor().Dynamic._accessibilityObject);
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
22Assert.NotNull(accessibleObject.TestAccessor().Dynamic._owner);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (3)
1509host.TestAccessor().Dynamic._parent = toolStrip; 1547host.TestAccessor().Dynamic._parent = toolStrip; 1583host.TestAccessor().Dynamic._parent = toolStrip;
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (9)
814AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 837AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 861AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 941AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 961AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 981AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1063AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1083AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1103AccessibleObject topRowAccessibilityObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewColumnHeaderCellAccessibleObjectTests.cs (1)
158AccessibleObject topRowAccessibleObject = control.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (16)
414AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 444AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 471AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 498AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 711AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 738AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 762AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 786AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 809AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 839AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 866AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 893AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1106AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1133AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1157AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1181AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
18Assert.Null(accessibleObject.TestAccessor().Dynamic._parentAccessibleObject);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
18Assert.Null(accessibleObject.TestAccessor().Dynamic._owningDataGridViewRow);
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (64)
18AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 39AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 56AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 75AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 93AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 111AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 129AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 149AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 165AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 183AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 201AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 221AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 240AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 261AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 282AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 303AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 323AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 344AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 365AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 386AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 403AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 421AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 439AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 457AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 477AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 493AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 511AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 529AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 549AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 568AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 589AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 610AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 631AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 651AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 672AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 693AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 714AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 734AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 750AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 771AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 790AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 809AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 827AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 852AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 870AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 891AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 912AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 935AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 959AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 981AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1003AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1024AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1050AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1074AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1098AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1118AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1133AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1149AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1166AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1180AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1195AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1211AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1228AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject; 1238AccessibleObject topRowAccessibleObject = dataGridView.AccessibilityObject.TestAccessor().Dynamic.TopRowAccessibilityObject;
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (3)
127dateTimePicker.TestAccessor().Dynamic._expandCollapseState = expected; 161dateTimePicker.TestAccessor().Dynamic._expandCollapseState = ExpandCollapseState.ExpandCollapseState_Expanded; 182dateTimePicker.TestAccessor().Dynamic._expandCollapseState = ExpandCollapseState.ExpandCollapseState_Expanded;
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (17)
21Assert.Null(accessibleObject.TestAccessor().Dynamic._controlItem); 22Assert.Null(accessibleObject.TestAccessor().Dynamic._window); 23Assert.Null(accessibleObject.TestAccessor().Dynamic._control); 24Assert.Null(accessibleObject.TestAccessor().Dynamic._provider); 154Assert.NotNull(accessibleObject.TestAccessor().Dynamic._controlItem); 241Assert.Null(accessibleObject1.TestAccessor().Dynamic._window); 242Assert.Null(accessibleObject2.TestAccessor().Dynamic._window); 243Assert.Null(accessibleObject3.TestAccessor().Dynamic._window); 246accessibleObject1.TestAccessor().Dynamic._window = window; 247accessibleObject2.TestAccessor().Dynamic._window = window; 248accessibleObject3.TestAccessor().Dynamic._window = window; 274Assert.Null(accessibleObject1.TestAccessor().Dynamic._window); 275Assert.Null(accessibleObject2.TestAccessor().Dynamic._window); 276Assert.Null(accessibleObject3.TestAccessor().Dynamic._window); 279accessibleObject1.TestAccessor().Dynamic._window = window; 280accessibleObject2.TestAccessor().Dynamic._window = window; 281accessibleObject3.TestAccessor().Dynamic._window = window;
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
20Assert.Null(accessibleObject.TestAccessor().Dynamic._owner);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1624listView.Groups[1].TestAccessor().Dynamic._accessibilityObject = new AccessibleObject();
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (4)
1358Assert.Null(group.TestAccessor().Dynamic._accessibilityObject); 1373Assert.Null(group.TestAccessor().Dynamic._accessibilityObject); 1387Assert.Null(group.TestAccessor().Dynamic._accessibilityObject); 1394Assert.NotNull(group.TestAccessor().Dynamic._accessibilityObject);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (6)
1852Assert.Null(item.TestAccessor().Dynamic._accessibilityObject); 1866Assert.Null(item.TestAccessor().Dynamic._accessibilityObject); 1880Assert.Null(item.TestAccessor().Dynamic._accessibilityObject); 1894Assert.Null(item.TestAccessor().Dynamic._accessibilityObject); 1908Assert.Null(item.TestAccessor().Dynamic._accessibilityObject); 1915Assert.NotNull(listViewItem.TestAccessor().Dynamic._accessibilityObject);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (9)
1070Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1086Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1102Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1118Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1134Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1150Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1167Assert.Null(listViewSubItem.TestAccessor().Dynamic._accessibilityObject); 1174Assert.NotNull(item.TestAccessor().Dynamic._accessibilityObject); 1178Assert.NotNull(subItem.TestAccessor().Dynamic._accessibilityObject);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (10)
18ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 54ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 66ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 80ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 91ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 102ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 113ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 124ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 139ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit; 148ListViewLabelEditNativeWindow labelEdit = listView.TestAccessor().Dynamic._labelEdit;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarButtonAccessibleObjectTests.cs (1)
124Action action = () => buttonAccessibleObject.TestAccessor().Dynamic.RaiseMouseClick();
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (22)
41Assert.Null(tabPage.TestAccessor().Dynamic._tabAccessibilityObject); 47Assert.NotNull(tabPage.TestAccessor().Dynamic._tabAccessibilityObject); 617pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 640pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 662pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 684pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 708pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 729pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 749pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 771pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 794pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 814pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 836pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 856pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 876pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 899pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 919pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 941pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 965pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 988pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 1008pages[0].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject; 1032pages[1].TestAccessor().Dynamic._tabAccessibilityObject = tabAccessibleObject;
System\Windows\Forms\AccessibleObjects\ToolStripNumericUpDown.ToolStripNumericUpDownAccessibleObjectTests.cs (1)
18ToolStripNumericUpDown actual = accessibleObject.TestAccessor().Dynamic._toolStripControlHost;
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (3)
37ownerItem.TestAccessor().Dynamic._dropDown = dropDownMenu; 99ownerItem.TestAccessor().Dynamic._dropDown = dropDownMenu; 137ownerItem.TestAccessor().Dynamic._dropDown = dropDownMenu;
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (10)
17TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 53TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 65TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 79TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 90TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 101TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 112TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 123TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 138TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit; 147TreeViewLabelEditNativeWindow labelEdit = treeView.TestAccessor().Dynamic._labelEdit;
System\Windows\Forms\ApplicationTests.cs (8)
184var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 193var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 216var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 257var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 265var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic; 283fakeSysFont.TestAccessor().Dynamic.SetSystemFontName(sysFont.SystemFontName); 304var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 315var nativeWindowTestAccessor = typeof(NativeWindow).TestAccessor().Dynamic;
System\Windows\Forms\AxHostTests.cs (2)
3094object site = control.TestAccessor().Dynamic._oleSite; 3095AxHost.ConnectionPointCookie cookie = site.TestAccessor().Dynamic._connectionPoint;
System\Windows\Forms\ComboBox.ComboBoxChildNativeWindowTests.cs (2)
19childNativeWindow.TestAccessor().Dynamic._childWindowType = childWindowType; 20Assert.True(childNativeWindow.TestAccessor().Dynamic.GetChildAccessibleObject() is ComboBox.ChildAccessibleObject);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (56)
23Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 28Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 50Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 66Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 81Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 96Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 112Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 129Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 146Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 166Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 196Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 215Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 234Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 250Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 265Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 293Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 316Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 355Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 377Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 397Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 417Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 445Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 472Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 511Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 549Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 582Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 599Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 634Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 652Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 668Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 684Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 699Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 716Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 735Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 752Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 795Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 831Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 858Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 877Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 921Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 938Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 968Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 986Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 993Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 997Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 1030Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 1050Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 1070Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 1088Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 1101Assert.Null(comboBox.TestAccessor().Dynamic._childEdit); 1115int actualValue = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_GETFIRSTVISIBLELINE); 1129int actualValue = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_GETLINECOUNT); 1155int expectedLine = (int)PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_LINEFROMCHAR, (WPARAM)charIndex); 1160Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit); 1176bool expectedValue = PInvokeCore.SendMessage((IHandle<HWND>)comboBox.TestAccessor().Dynamic._childEdit, PInvokeCore.EM_LINESCROLL, 0, newLine) != 0; 1180Assert.NotNull(comboBox.TestAccessor().Dynamic._childEdit);
System\Windows\Forms\ComboBoxTests.cs (17)
360comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 2174AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2175comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2194AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2195comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2216AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2217comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2236AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2237comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2282AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2283comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2299AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2300comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2322AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2323comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider; 2339AutomationEventCountingComboBoxChildEditUiaProvider comboBoxChildEditUiaProvider = new(comboBox, comboBox.TestAccessor().Dynamic._childEdit.HWND); 2340comboBox.TestAccessor().Dynamic._childEditAccessibleObject = comboBoxChildEditUiaProvider;
System\Windows\Forms\ControlTests.cs (1)
1144=> this.TestAccessor().Dynamic.GetNextSelectableControl(ctl, forward, tabStopOnly, nested, wrap);
System\Windows\Forms\ControlTests.Internals.cs (2)
408Assert.Null(control.TestAccessor().Dynamic.ReflectParent); 419Assert.NotNull(control.TestAccessor().Dynamic.ReflectParent);
System\Windows\Forms\DataGridViewRowTests.cs (2)
2024var applicationTestAccessor = typeof(Application).TestAccessor().Dynamic; 5821return this.TestAccessor().Dynamic.DefaultHeight;
System\Windows\Forms\DataObjectComTests.cs (2)
18dynamic accessor = typeof(Control).TestAccessor().Dynamic; 37dynamic accessor = typeof(Control).TestAccessor().Dynamic;
System\Windows\Forms\DataObjectTests.cs (8)
2705dynamic controlAccessor = typeof(Control).TestAccessor().Dynamic; 2733dynamic controlAccessor = typeof(Control).TestAccessor().Dynamic; 2754dynamic accessor = typeof(Control).TestAccessor().Dynamic; 2770dynamic accessor = typeof(Control).TestAccessor().Dynamic; 2786dynamic accessor = typeof(Control).TestAccessor().Dynamic; 3007object storedData = dataObject.TestAccessor().Dynamic._innerData.GetData(format); 3018object storedData = data.TestAccessor().Dynamic._innerData.GetData(format); 3030object storedData = data.TestAccessor().Dynamic._innerData.GetData(format);
System\Windows\Forms\GroupBoxTests.cs (2)
610int updatedFontHeight = accessor.Dynamic._fontHeight; 611Font updatedCachedFont = accessor.Dynamic._cachedFont;
System\Windows\Forms\LabelTests.cs (1)
229dynamic labelDynamic = label.TestAccessor().Dynamic;
System\Windows\Forms\LayoutEventArgsTests.cs (1)
82LayoutEventArgs layoutEventArgs = (LayoutEventArgs)tableLayoutPanelTestAccessor.Dynamic._cachedLayoutEventArgs;
System\Windows\Forms\LinkLabel.LinkComparerTests.cs (1)
22var comparer = linkLabel.TestAccessor().Dynamic.s_linkComparer;
System\Windows\Forms\ListBoxTests.cs (2)
6361listBox.TestAccessor().Dynamic.RecreateHandle(); 6385listBox.TestAccessor().Dynamic.SetState(1, true);
System\Windows\Forms\ListViewItemStateImageIndexConverterTests.cs (1)
14Assert.False(new ListViewItemStateImageIndexConverter().TestAccessor().Dynamic.IncludeNoneAsStandardValue);
System\Windows\Forms\ListViewTests.cs (26)
4870Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4902Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4933Assert.True(accessor.Dynamic.IsToolTracked(listViewItem)); 4944listView.TestAccessor().Dynamic.NotifyAboutGotFocus(listViewItem); 4945Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4953listView.TestAccessor().Dynamic.NotifyAboutGotFocus(listViewItem); 4954Assert.True((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(listViewItem)); 4967listView.TestAccessor().Dynamic.NotifyAboutLostFocus(listViewItem); 4978listView.TestAccessor().Dynamic.NotifyAboutGotFocus(listViewItem); 4981listView.TestAccessor().Dynamic.NotifyAboutLostFocus(listViewItem); 5120dynamic listViewDynamic = listView.TestAccessor().Dynamic; 5153int accessibilityProperty = listView.TestAccessor().Dynamic.s_accessibilityProperty; 5178int accessibilityProperty = listView.TestAccessor().Dynamic.s_accessibilityProperty; 5203int accessibilityProperty = listView.TestAccessor().Dynamic.s_accessibilityProperty; 5230int accessibilityProperty = listView.TestAccessor().Dynamic.s_accessibilityProperty; 5351listViewItem.TestAccessor().Dynamic._accessibilityObject = accessibleObject; 5404int accessibilityProperty = listView.TestAccessor().Dynamic.s_accessibilityProperty; 5454PInvokeCore.SendMessage(listView, PInvokeCore.WM_TIMER, (WPARAM)(nint)listView.TestAccessor().Dynamic.LVLABELEDITTIMER); 5864Assert.Null(listView.TestAccessor().Dynamic._defaultGroup); 5996listView.TestAccessor().Dynamic.OnColumnClick(args); 6005listView.TestAccessor().Dynamic.OnColumnClick(args); 6012listView.TestAccessor().Dynamic.OnColumnClick(args); 6039listView.TestAccessor().Dynamic.OnGroupTaskLinkClick(expectedEventArgs); 6047listView.TestAccessor().Dynamic.OnGroupTaskLinkClick(new ListViewGroupEventArgs(2)); 6054listView.TestAccessor().Dynamic.OnGroupTaskLinkClick(new ListViewGroupEventArgs(3)); 6061listView.TestAccessor().Dynamic.OnGroupTaskLinkClick(new ListViewGroupEventArgs(4));
System\Windows\Forms\MdiControlStripTests.cs (12)
162ToolStripMenuItem system = mdiControlStrip.TestAccessor().Dynamic._system; 163ToolStripMenuItem close = mdiControlStrip.TestAccessor().Dynamic._close; 164ToolStripMenuItem minimize = mdiControlStrip.TestAccessor().Dynamic._minimize; 165ToolStripMenuItem restore = mdiControlStrip.TestAccessor().Dynamic._restore; 180mdiControlStrip.TestAccessor().Dynamic._system, 181mdiControlStrip.TestAccessor().Dynamic._close, 182mdiControlStrip.TestAccessor().Dynamic._minimize, 183mdiControlStrip.TestAccessor().Dynamic._restore 218ToolStripItem.ToolStripItemAccessibleObject systemItem = (ToolStripItem.ToolStripItemAccessibleObject)accessibleObject.TestAccessor().Dynamic.FragmentNavigate(NavigateDirection.NavigateDirection_FirstChild); 264ToolStripItem.ToolStripItemAccessibleObject closeItem = (ToolStripItem.ToolStripItemAccessibleObject)accessibleObject.TestAccessor().Dynamic.FragmentNavigate(NavigateDirection.NavigateDirection_LastChild); 326MdiControlStrip originalMdiControlStrip = mdiParent.TestAccessor().Dynamic.MdiControlStrip; 334MdiControlStrip currentMdiControlStrip = mdiParent.TestAccessor().Dynamic.MdiControlStrip;
System\Windows\Forms\MessageBoxTests.cs (1)
148return typeof(MessageBox).TestAccessor().Dynamic.GetMessageBoxStyle(owner, buttons, icon, defaultButton, options, showHelp);
System\Windows\Forms\MonthCalendarTests.cs (25)
4194MONTH_CALDENDAR_MESSAGES_VIEW view = calendar.TestAccessor().Dynamic._mcCurView; 4201int monthsCount = calendar.TestAccessor().Dynamic.GetMonthsCountOfRange(displayRange); 4240int actualIndex = calendar.TestAccessor().Dynamic.GetIndexInMonths(startDate, currentDate); 4514ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTodayDate(), () => calendar.TodayDate = DateTime.Now); 4515ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeAnnuallyBoldedDates(), () => calendar.AddAnnuallyBoldedDate(DateTime.Now)); 4516ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeBoldedDates(), () => calendar.AddBoldedDate(DateTime.Now)); 4517ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeMonthlyBoldedDates(), () => calendar.AddMonthlyBoldedDate(DateTime.Now)); 4518ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeMaxDate(), () => calendar.MaxDate = DateTime.Now.AddYears(2)); 4519ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeMinDate(), () => calendar.MinDate = DateTime.Now); 4520ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTrailingForeColor(), () => calendar.TrailingForeColor = Color.Red); 4521ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleForeColor(), () => calendar.TitleForeColor = Color.Red); 4522ShouldSerializeProperty(() => calendar.TestAccessor().Dynamic.ShouldSerializeTitleBackColor(), () => calendar.TitleBackColor = Color.Red); 4549calendar.TestAccessor().Dynamic.ResetTodayDate(); 4568calendar.TestAccessor().Dynamic.ResetTodayDate(); 4584resetColor(testAccessor.Dynamic); 4589resetColor(testAccessor.Dynamic); 4628resetProperty(calendar.TestAccessor().Dynamic); 4667calendar.TestAccessor().Dynamic.ResetMaxDate(); 4678calendar.TestAccessor().Dynamic.ResetCalendarDimensions(); 4689calendar.TestAccessor().Dynamic.ResetAnnuallyBoldedDates(); 4700calendar.TestAccessor().Dynamic.ResetBoldedDates(); 4717calendar.TestAccessor().Dynamic._onCalendarViewChanged += handler; 4718calendar.TestAccessor().Dynamic.OnCalendarViewChanged(EventArgs.Empty); 4721calendar.TestAccessor().Dynamic._onCalendarViewChanged -= handler; 4722calendar.TestAccessor().Dynamic.OnCalendarViewChanged(EventArgs.Empty);
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (2)
190=> this.TestAccessor().Dynamic._vScrollBar; 193=> this.TestAccessor().Dynamic._hScrollBar;
System\Windows\Forms\Printing\PrintPreviewControlTests.cs (4)
16int actualBackColorArgb = control.TestAccessor().Dynamic.GetBackColor(false).ToArgb(); 21actualBackColorArgb = control.TestAccessor().Dynamic.GetBackColor(false).ToArgb(); 30int actualBackColorArgb = control.TestAccessor().Dynamic.GetBackColor(true).ToArgb(); 38actualBackColorArgb = control.TestAccessor().Dynamic.GetBackColor(true).ToArgb();
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObjectTests.cs (1)
27gridEntry.TestAccessor().Dynamic._parent = new TestGridEntry(propertyGrid, null, propertyGridView);
System\Windows\Forms\RichTextBoxTests.cs (2)
6901string textOldWay = control.TestAccessor().Dynamic.StreamOut(PInvoke.SF_TEXT | PInvoke.SF_UNICODE); 6983string textOldWay = control.TestAccessor().Dynamic.GetTextEx(GETTEXTEX_FLAGS.GT_USECRLF);
System\Windows\Forms\ScrollBarTests.cs (1)
2595control.TestAccessor().Dynamic._scrollOrientation = orientation;
System\Windows\Forms\TabControlTests.cs (1)
5693dynamic tabControl = control.TestAccessor().Dynamic;
System\Windows\Forms\TabPageTests.cs (7)
5003ToolTip internalToolTip = control.TestAccessor().Dynamic._internalToolTip; 5021ToolTip internalToolTip = control.TestAccessor().Dynamic._internalToolTip; 5059dynamic tabPageDynamic = control.TestAccessor().Dynamic; 5091dynamic tabPageDynamic = control.TestAccessor().Dynamic; 5127dynamic tabPageDynamic = control.TestAccessor().Dynamic; 5158dynamic tabPageDynamic = control.TestAccessor().Dynamic; 5184dynamic tabPageDynamic = control.TestAccessor().Dynamic;
System\Windows\Forms\TextBoxAutoCompleteSourceConverterTests.cs (1)
21List<object> value = valuesCollection.TestAccessor().Dynamic._values;
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
30toolStripButton.TestAccessor().Dynamic.OnPaint(e); 53toolStripButton.TestAccessor().Dynamic.OnPaint(e); 78toolStripButton.TestAccessor().Dynamic.OnPaint(e); 104toolStripButton.TestAccessor().Dynamic.OnPaint(e); 130toolStripDropDownButton.TestAccessor().Dynamic.OnPaint(e); 157toolStripDropDownButton.TestAccessor().Dynamic.OnPaint(e);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
34.TestAccessor().Dynamic.UseBaseAdapter(comboBox);
System\Windows\Forms\ToolStripComboBoxTests.cs (10)
246_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 251_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDown(EventArgs.Empty); 262_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 267_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownClosed(EventArgs.Empty); 280_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 285_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDropDownStyleChanged(EventArgs.Empty); 317_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 322_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnTextUpdate(EventArgs.Empty); 365_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty); 370_toolStripComboBox.ComboBox.TestAccessor().Dynamic.OnDoubleClick(EventArgs.Empty);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
263dynamic accessor = collection.TestAccessor().Dynamic; 276dynamic accessor = collection.TestAccessor().Dynamic;
System\Windows\Forms\ToolStripItemTests.cs (1)
15630var key = this.TestAccessor().Dynamic.s_accessibilityProperty;
System\Windows\Forms\ToolStripLabelTests.cs (7)
98var defaultColor = _toolStripLabel.TestAccessor().Dynamic.IEActiveLinkColor; 153var accessor = _toolStripLabel.TestAccessor().Dynamic; 171var accessor = _toolStripLabel.TestAccessor().Dynamic; 184var accessor = _toolStripLabel.TestAccessor().Dynamic; 199var accessor = _toolStripLabel.TestAccessor().Dynamic; 212var accessor = _toolStripLabel.TestAccessor().Dynamic; 238var accessor = _toolStripLabel.TestAccessor().Dynamic;
System\Windows\Forms\ToolStripMenuItemTests.cs (4)
119using Bitmap bitmap = menuItem.TestAccessor().Dynamic.GetNativeMenuItemImage(); 217item.TestAccessor().Dynamic.OnClick(null); 234item.TestAccessor().Dynamic.OnClick(null); 360dynamic accessor = item.TestAccessor().Dynamic;
System\Windows\Forms\ToolStripPanel.ToolStripPanelRowCollectionTests.cs (2)
39using ToolStripPanel toolStripPanel = _toolStripPanelRowCollection.TestAccessor().Dynamic._owner; 49ToolStripPanel toolStripPanel = toolStripPanelRowCollection.TestAccessor().Dynamic._owner;
System\Windows\Forms\ToolStripSplitButtonTests.cs (13)
83toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 93toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 104toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 115toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 129toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 147toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 165toolStripSplitButton.DropDownButtonWidth.Should().Be(toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownButtonWidth); 190_toolStripSplitButton.ButtonBounds.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.SplitButtonButton.Bounds); 196_toolStripSplitButton.ButtonPressed.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.SplitButtonButton.Pressed); 202_toolStripSplitButton.ButtonSelected.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.SplitButtonButton.Selected); 342_toolStripSplitButton.TestAccessor().Dynamic.OnButtonClick(EventArgs.Empty); 355_toolStripSplitButton.TestAccessor().Dynamic.OnButtonClick(EventArgs.Empty); 417_toolStripSplitButton.DropDownButtonWidth.Should().Be(_toolStripSplitButton.TestAccessor().Dynamic.DefaultDropDownWidth);
System\Windows\Forms\ToolStripStatusLabelTests.cs (1)
64label.TestAccessor().Dynamic.OnClick(null);
System\Windows\Forms\ToolStripTests.cs (11)
4818toolStrip.TestAccessor().Dynamic.LastKeyData = Keys.Tab; 4839toolStrip.TestAccessor().Dynamic.LastKeyData = Keys.Tab; 4864toolStrip.TestAccessor().Dynamic.LastKeyData = Keys.Shift | Keys.Tab; 4885toolStrip.TestAccessor().Dynamic.LastKeyData = Keys.Shift | Keys.Tab; 7297toolStrip.TestAccessor().Dynamic.LastKeyData = Keys.Left; 7314((MouseHoverTimer)menuStrip.TestAccessor().Dynamic.MouseHoverTimer).Start(toolStripItem); 7323MouseHoverTimer mouseHoverTimer = (MouseHoverTimer)menuStrip.TestAccessor().Dynamic.MouseHoverTimer; 7415toolStrip.TestAccessor().Dynamic.ResetGripMargin(); 7454((bool)toolStrip.TestAccessor().Dynamic.ShouldSerializeGripMargin()).Should().BeTrue(); 7456var defaultGripMargin = (Padding)toolStrip.TestAccessor().Dynamic.DefaultGripMargin; 7458((bool)toolStrip.TestAccessor().Dynamic.ShouldSerializeGripMargin()).Should().BeFalse();
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
31toolStrip.TestAccessor().Dynamic.OnPaintBackground(e);
System\Windows\Forms\ToolStripTextBoxTests.cs (8)
126_toolStripTextBox.TestAccessor().Dynamic.HandleTextBoxTextAlignChanged(null, EventArgs.Empty); 136_toolStripTextBox.TestAccessor().Dynamic.OnAcceptsTabChanged(EventArgs.Empty); 146_toolStripTextBox.TestAccessor().Dynamic.OnBorderStyleChanged(EventArgs.Empty); 156_toolStripTextBox.TestAccessor().Dynamic.OnHideSelectionChanged(EventArgs.Empty); 166_toolStripTextBox.TestAccessor().Dynamic.OnModifiedChanged(EventArgs.Empty); 176_toolStripTextBox.TestAccessor().Dynamic.OnMultilineChanged(EventArgs.Empty); 185bool result = _toolStripTextBox.TestAccessor().Dynamic.ShouldSerializeFont(); 189result = _toolStripTextBox.TestAccessor().Dynamic.ShouldSerializeFont();
System\Windows\Forms\TreeNodeTests.cs (2)
4631Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(treeNode)); 4632Assert.False((bool)KeyboardToolTipStateMachine.Instance.TestAccessor().Dynamic.IsToolTracked(treeSubNode));
System\Windows\Forms\TreeViewImageIndexConverterTests.cs (1)
14Assert.False(new TreeViewImageIndexConverter().TestAccessor().Dynamic.IncludeNoneAsStandardValue);
System\Windows\Forms\TreeViewTests.cs (7)
6815dynamic listViewDynamic = treeView.TestAccessor().Dynamic; 7472accessor.Dynamic.ResetIndent(); 7484accessor.Dynamic.ResetItemHeight(); 7495bool result = accessor.Dynamic.ShouldSerializeIndent(); 7500result = accessor.Dynamic.ShouldSerializeIndent(); 7511bool result = accessor.Dynamic.ShouldSerializeItemHeight(); 7516result = accessor.Dynamic.ShouldSerializeItemHeight();
TestAccessorTests.cs (19)
14dynamic access = testClass.TestAccessor().Dynamic; 24dynamic access = typeof(PrivateTestClass).TestAccessor().Dynamic; 30access = testClass.TestAccessor().Dynamic; 35access = typeof(PrivateStaticTestClass).TestAccessor().Dynamic; 44dynamic access = testClass.TestAccessor().Dynamic; 53dynamic access = testClass.TestAccessor().Dynamic; 64dynamic access = testClass.TestAccessor().Dynamic; 73dynamic access = testClass.TestAccessor().Dynamic; 78access = typeof(PrivateTestClass).TestAccessor().Dynamic; 83access = typeof(PrivateStaticTestClass).TestAccessor().Dynamic; 92dynamic access = testClass.TestAccessor().Dynamic; 102dynamic access = testClass.TestAccessor().Dynamic; 112Assert.Equal(4, testClass.TestAccessor().Dynamic.ToStringLength(2001)); 113Assert.Equal(7, testClass.TestAccessor().Dynamic.ToStringLength("Flubber")); 137Assert.Equal(2, testClass.TestAccessor().Dynamic.AddOne(1)); 140Assert.Equal(3, typeof(PrivateStaticTestClass).TestAccessor().Dynamic.AddOne(2)); 157dynamic accessor = a.TestAccessor().Dynamic; 166dynamic accessor = a.TestAccessor().Dynamic; 175dynamic accessor = a.TestAccessor().Dynamic;
TextBoxBaseTests.cs (2)
773TextBoxBase.TextBoxBaseUiaTextProvider provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider; 778provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider;
TextBoxTests.cs (1)
387bool result = textBox.TestAccessor().Dynamic.ShouldRenderPlaceHolderText();
TextBoxTests.Rendering.cs (1)
32textBox.TestAccessor().Dynamic.DrawPlaceholderText(emf.HDC);
System.Windows.Forms.TestUtilities (2)
PropertyGridInternal\SubPropertyGrid.cs (2)
19internal PropertyGridView GridView => this.TestAccessor().Dynamic._gridView; 67GridView.PopupEditor(GridView.TestAccessor().Dynamic._selectedRow);
System.Windows.Forms.UI.IntegrationTests (15)
DataGridViewTests.cs (1)
66object toolTip = dataGridView.TestAccessor().Dynamic._toolTipControl;
Dpi\FormDpiTests.cs (10)
27typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 64typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 98typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 134typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 170typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 179dynamic fomrTestAccessor = form.TestAccessor().Dynamic; 202typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 210Assert.Null(form.TestAccessor().Dynamic._dpiFormSizes); 230typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics(); 237Assert.Null(form.TestAccessor().Dynamic._dpiFormSizes);
Dpi\SplitContainerTests.cs (1)
42typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics();
Dpi\ToolStripItemTests.Dpi.cs (1)
30typeof(ScaleHelper).TestAccessor().Dynamic.InitializeStatics();
MonthCalendarTests.cs (1)
177CalendarCellAccessibleObject cell = accessibleObject.TestAccessor().Dynamic.GetCellByDate(dateTime.Date);
PropertyGridTests.cs (1)
464PropertyGrid propertyGrid = propertyTabCollection.TestAccessor().Dynamic._ownerPropertyGrid;
WindowsBase.Tests (1)
System\Windows\SplashScreenTests.cs (1)
18string resourceName = splash.TestAccessor().Dynamic._resourceName;