Skip to content

Commit

Permalink
Address PR review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Dec 20, 2021
1 parent 06517a6 commit 10186c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static IEnumerable<DependencyObject> ThrowArgumentOutOfRangeExceptionForInvalidS

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

/// <summary>
/// Find all first level descendant elements of the specified element. This method can be chained
/// with INQ calls to add additional filters or projections on top of the returned results.
/// with LINQ calls to add additional filters or projections on top of the returned results.
/// </summary>
/// <param name="element">The root element.</param>
/// <returns>All the first level descendant <see cref="DependencyObject"/> instance from <paramref name="element"/>.</returns>
Expand Down
16 changes: 8 additions & 8 deletions UnitTests/UnitTests.UWP/Extensions/Test_VisualTreeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
Assert.AreEqual(5, children.Length, "Expected to find 5 children.");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'A'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'B'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'C'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'D'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'E'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "B"), "Couldn't find child 'B'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "C"), "Couldn't find child 'C'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "D"), "Couldn't find child 'D'");
Assert.IsTrue(children.Any(c => ((FrameworkElement)c).Name == "E"), "Couldn't find child 'E'");
});
}

Expand Down Expand Up @@ -529,10 +529,10 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "RootGrid"), "Couldn't find self");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'A'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'B'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'C'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'D'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "A"), "Couldn't find child 'E'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "B"), "Couldn't find child 'B'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "C"), "Couldn't find child 'C'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "D"), "Couldn't find child 'D'");
Assert.IsTrue(childrenOrSelf.Any(c => ((FrameworkElement)c).Name == "E"), "Couldn't find child 'E'");
});
}

Expand Down

0 comments on commit 10186c5

Please sign in to comment.