public void Test3_AllButton(int checkCount) { for (int i = 0; i < checkCount; i++) { _listItem.Check(_rand.Next(TestItemsCount - 1)); } _statusBar.ClickAll(); Assert.IsTrue(_listItem.GetItemsAll().Count == TestItemsCount && NamesAreEqual(_testArray)); }