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)
76int initialCount = _propertyTabCollection.Count; 77_propertyTabCollection.AddTabType(typeof(TestPropertyTab)); 79_propertyTabCollection.Count.Should().Be(initialCount + 1); 80_propertyTabCollection[initialCount].Should().BeOfType<TestPropertyTab>(); 86int 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)); 97int 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); 109int countAfterAdd = _propertyTabCollection.Count; 111_propertyTabCollection.Clear(PropertyTabScope.Component); 113_propertyTabCollection.Count.Should().BeLessThan(countAfterAdd); 119_propertyTabCollection.AddTabType(typeof(TestPropertyTab)); 120PropertyTab[] array = new PropertyTab[_propertyTabCollection.Count]; 122((ICollection)_propertyTabCollection).CopyTo(array, 0); 131_propertyTabCollection.AddTabType(typeof(TestPropertyTab)); 134foreach (PropertyTab tab in _propertyTabCollection) 140count.Should().Be(_propertyTabCollection.Count); 146object syncRoot = ((ICollection)_propertyTabCollection).SyncRoot; 148syncRoot.Should().BeSameAs(_propertyTabCollection); 154bool isSynchronized = ((ICollection)_propertyTabCollection).IsSynchronized;