@@ -44,7 +44,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
44
44
await SetTestContentAsync ( treeRoot ) ;
45
45
46
46
// Main Test
47
- var textBlock = treeRoot . FindChildByName ( "TargetElement" ) ;
47
+ var textBlock = treeRoot . FindChild ( "TargetElement" ) ;
48
48
49
49
Assert . IsNotNull ( textBlock , "Expected to find something." ) ;
50
50
Assert . IsInstanceOfType ( textBlock , typeof ( TextBlock ) , "Didn't find expected typed element." ) ;
@@ -79,7 +79,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
79
79
await SetTestContentAsync ( treeRoot ) ;
80
80
81
81
// Main Test
82
- var textBlock = treeRoot . FindChildByName ( "TargetElement" ) ;
82
+ var textBlock = treeRoot . FindChild ( "TargetElement" ) ;
83
83
84
84
Assert . IsNull ( textBlock , "Didn't expect to find anything." ) ;
85
85
} ) ;
@@ -250,7 +250,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
250
250
await SetTestContentAsync ( treeRoot ) ;
251
251
252
252
// Main Test
253
- var textBlocks = treeRoot . FindChildren < TextBlock > ( ) ;
253
+ var textBlocks = treeRoot . FindChildren ( ) . OfType < TextBlock > ( ) ;
254
254
255
255
Assert . IsNotNull ( textBlocks , "Expected to find something." ) ;
256
256
@@ -438,7 +438,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
438
438
Assert . IsNotNull ( startingPoint , "Could not find starting element." ) ;
439
439
440
440
// Main Test
441
- var grid = startingPoint . FindParentByName ( "TargetElement" ) ;
441
+ var grid = startingPoint . FindParent ( "TargetElement" ) ;
442
442
443
443
Assert . IsNotNull ( grid , "Expected to find Grid" ) ;
444
444
Assert . AreEqual ( targetGrid , grid , "Grid didn't match expected." ) ;
@@ -485,7 +485,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
485
485
Assert . IsNotNull ( startingPoint , "Could not find starting element." ) ;
486
486
487
487
// Main Test
488
- var grid = startingPoint . FindParentByName ( "TargetElement" ) ;
488
+ var grid = startingPoint . FindParent ( "TargetElement" ) ;
489
489
490
490
Assert . IsNull ( grid , "Didn't expect to find anything." ) ;
491
491
} ) ;
0 commit comments