Skip to content

Commit 10186c5

Browse files
committed
Address PR review comments
1 parent 06517a6 commit 10186c5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Microsoft.Toolkit.Uwp.UI/Extensions/DependencyObjectExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS
545545

546546
/// <summary>
547547
/// Find all first level descendant elements of the specified element. This method can be chained
548-
/// with INQ calls to add additional filters or projections on top of the returned results.
548+
/// with LINQ calls to add additional filters or projections on top of the returned results.
549549
/// </summary>
550550
/// <param name="element">The root element.</param>
551551
/// <returns>All the first level descendant <see cref="DependencyObject"/> instance from <paramref name="element"/>.</returns>
@@ -563,7 +563,7 @@ public static IEnumerable<DependencyObject> FindFirstLevelDescendants(this Depen
563563

564564
/// <summary>
565565
/// Find all first level descendant elements of the specified element. This method can be chained
566-
/// with INQ calls to add additional filters or projections on top of the returned results.
566+
/// with LINQ calls to add additional filters or projections on top of the returned results.
567567
/// </summary>
568568
/// <param name="element">The root element.</param>
569569
/// <returns>All the first level descendant <see cref="DependencyObject"/> instance from <paramref name="element"/>.</returns>

UnitTests/UnitTests.UWP/Extensions/Test_VisualTreeExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,10 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
480480
Assert.AreEqual(5, children.Length, "Expected to find 5 children.");
481481

482482
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'A'");
483-
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'B'");
484-
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'C'");
485-
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'D'");
486-
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'E'");
483+
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "B"), "Couldn't find child 'B'");
484+
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "C"), "Couldn't find child 'C'");
485+
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "D"), "Couldn't find child 'D'");
486+
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "E"), "Couldn't find child 'E'");
487487
});
488488
}
489489

@@ -529,10 +529,10 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
529529

530530
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "RootGrid"), "Couldn't find self");
531531
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'A'");
532-
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'B'");
533-
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'C'");
534-
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'D'");
535-
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'E'");
532+
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "B"), "Couldn't find child 'B'");
533+
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "C"), "Couldn't find child 'C'");
534+
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "D"), "Couldn't find child 'D'");
535+
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "E"), "Couldn't find child 'E'");
536536
});
537537
}
538538

0 commit comments

Comments
 (0)