1 write to _propertyTabCollection
System.Windows.Forms.Tests (1)
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (1)
21
_propertyTabCollection
= new PropertyGrid.PropertyTabCollection(_propertyGrid);
26 references to _propertyTabCollection
System.Windows.Forms.Tests (26)
System\Windows\Forms\PropertyGrid.PropertyTabCollectionTests.cs (26)
76
int initialCount =
_propertyTabCollection
.Count;
77
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab));
79
_propertyTabCollection
.Count.Should().Be(initialCount + 1);
80
_propertyTabCollection
[initialCount].Should().BeOfType<TestPropertyTab>();
86
int initialCount =
_propertyTabCollection
.Count;
87
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab), PropertyTabScope.Component);
89
_propertyTabCollection
.Count.Should().Be(initialCount + 1);
90
_propertyTabCollection
[initialCount].Should().BeOfType<TestPropertyTab>();
96
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab));
97
int countAfterAdd =
_propertyTabCollection
.Count;
99
_propertyTabCollection
.RemoveTabType(typeof(TestPropertyTab));
101
_propertyTabCollection
.Count.Should().Be(countAfterAdd - 1);
102
_propertyTabCollection
.Cast<PropertyTab>().Should().NotContain(tab => tab is TestPropertyTab);
108
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab), PropertyTabScope.Component);
109
int countAfterAdd =
_propertyTabCollection
.Count;
111
_propertyTabCollection
.Clear(PropertyTabScope.Component);
113
_propertyTabCollection
.Count.Should().BeLessThan(countAfterAdd);
119
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab));
120
PropertyTab[] array = new PropertyTab[
_propertyTabCollection
.Count];
122
((ICollection)
_propertyTabCollection
).CopyTo(array, 0);
131
_propertyTabCollection
.AddTabType(typeof(TestPropertyTab));
134
foreach (PropertyTab tab in
_propertyTabCollection
)
140
count.Should().Be(
_propertyTabCollection
.Count);
146
object syncRoot = ((ICollection)
_propertyTabCollection
).SyncRoot;
148
syncRoot.Should().BeSameAs(
_propertyTabCollection
);
154
bool isSynchronized = ((ICollection)
_propertyTabCollection
).IsSynchronized;