1 write to _item
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (1)
30
_item
= new(_commandID, "Test Text", "TestImage", _serviceProviderMock.Object);
12 references to _item
System.Windows.Forms.Design.Tests (12)
System\Windows\Forms\Design\StandardCommandToolStripMenuItemTests.cs (12)
33
public void Dispose() =>
_item
.Dispose();
38
_item
.MenuService?.FindCommand(_commandID)?.CommandID.Should().Be(_commandID);
39
string name =
_item
.TestAccessor().Dynamic._name;
41
_item
.Text.Should().Be("Test Text");
52
_item
.RefreshItem();
54
_item
.Visible.Should().BeFalse();
55
_item
.Enabled.Should().BeFalse();
56
_item
.Checked.Should().BeTrue();
62
IMenuCommandService? menuService =
_item
.MenuService;
70
Image? firstAccessImage =
_item
.Image;
71
Image? secondAccessImage =
_item
.Image;
79
Action action =
_item
.PerformClick;