Skip to content

Commit b4e7355

Browse files
ajpinedamunodevops
authored andcommitted
chore: update tests assertions
1 parent 576e4d7 commit b4e7355

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TimePicker.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ await TestServices.RunOnUIThread(() =>
420420
Assert.IsNotNull(panel, "LoopingSelectorPanel should be found");
421421

422422
initialRealizedItemCount = panel.Children.Count;
423-
Assert.IsTrue(initialRealizedItemCount > 0, "Should have realized items initially");
423+
Assert.IsGreaterThan(0, initialRealizedItemCount, "Should have realized items initially");
424424
});
425425

426426
// Simulate fast scrolling by rapidly changing the scroll position
@@ -442,8 +442,8 @@ await TestServices.RunOnUIThread(() =>
442442
currentItemCount = panel.Children.Count;
443443
});
444444

445-
Assert.IsTrue(currentItemCount > 0,
446-
$"Should have visible items during fast scrolling at position {scrollPosition}, but found {currentItemCount} items");
445+
Assert.IsGreaterThan(0,
446+
currentItemCount, $"Should have visible items during fast scrolling at position {scrollPosition}, but found {currentItemCount} items");
447447
}
448448

449449
await TestServices.WindowHelper.WaitForIdle();
@@ -454,7 +454,7 @@ await TestServices.RunOnUIThread(() =>
454454
finalRealizedItemCount = panel.Children.Count;
455455
});
456456

457-
Assert.IsTrue(finalRealizedItemCount > 0, "Should have realized items after scrolling completes");
457+
Assert.IsGreaterThan(0, finalRealizedItemCount, "Should have realized items after scrolling completes");
458458

459459
await ControlHelper.ClickFlyoutCloseButton(timePicker, false /* isAccept */);
460460
await TestServices.WindowHelper.WaitForIdle();

0 commit comments

Comments
 (0)