private void Expand(int index, int childCount) { using (var countDown = new AddCountDownEvent(childCount, _linearized.ItemList)) { _linearized.ItemList[index].IsExpanded = true; countDown.Wait(TimeSpan.FromMilliseconds(1000)).Should().BeTrue(); } }