コード例 #1
0
 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();
     }
 }
コード例 #2
0
 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();
     }
 }