Skip to content

Commit 9e56083

Browse files
committed
Fixed some build errors in UWP unit tests
1 parent 1d4fdf1 commit 9e56083

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

UITests/UITests.App/RequestPageMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public RequestPageMessage(string name)
1212
{
1313
PageName = name;
1414
}
15-
15+
1616
public string PageName { get; }
1717
}
1818
}

UnitTests/UnitTests.UWP/Extensions/Test_LogicalTreeExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
4444
await SetTestContentAsync(treeRoot);
4545

4646
// Main Test
47-
var textBlock = treeRoot.FindChildByName("TargetElement");
47+
var textBlock = treeRoot.FindChild("TargetElement");
4848

4949
Assert.IsNotNull(textBlock, "Expected to find something.");
5050
Assert.IsInstanceOfType(textBlock, typeof(TextBlock), "Didn't find expected typed element.");
@@ -79,7 +79,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
7979
await SetTestContentAsync(treeRoot);
8080

8181
// Main Test
82-
var textBlock = treeRoot.FindChildByName("TargetElement");
82+
var textBlock = treeRoot.FindChild("TargetElement");
8383

8484
Assert.IsNull(textBlock, "Didn't expect to find anything.");
8585
});
@@ -250,7 +250,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
250250
await SetTestContentAsync(treeRoot);
251251

252252
// Main Test
253-
var textBlocks = treeRoot.FindChildren<TextBlock>();
253+
var textBlocks = treeRoot.FindChildren().OfType<TextBlock>();
254254

255255
Assert.IsNotNull(textBlocks, "Expected to find something.");
256256

@@ -438,7 +438,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
438438
Assert.IsNotNull(startingPoint, "Could not find starting element.");
439439

440440
// Main Test
441-
var grid = startingPoint.FindParentByName("TargetElement");
441+
var grid = startingPoint.FindParent("TargetElement");
442442

443443
Assert.IsNotNull(grid, "Expected to find Grid");
444444
Assert.AreEqual(targetGrid, grid, "Grid didn't match expected.");
@@ -485,7 +485,7 @@ await App.DispatcherQueue.EnqueueAsync(async () =>
485485
Assert.IsNotNull(startingPoint, "Could not find starting element.");
486486

487487
// Main Test
488-
var grid = startingPoint.FindParentByName("TargetElement");
488+
var grid = startingPoint.FindParent("TargetElement");
489489

490490
Assert.IsNull(grid, "Didn't expect to find anything.");
491491
});

0 commit comments

Comments
 (0)