Skip to content

Commit

Permalink
fix: Adjust When_Scrolled_To_End_And_Last_Item_Removed test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jan 20, 2021
1 parent ef8e6bc commit 8879083
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ public async Task When_Scrolled_To_End_And_Last_Item_Removed()
await WindowHelper.WaitFor(() => (lastItem = list.ContainerFromItem(19) as ListViewItem) != null);
var secondLastItem = list.ContainerFromItem(18) as ListViewItem;

Assert.AreEqual(181, GetTop(lastItem), delta: 2);
Assert.AreEqual(152, GetTop(secondLastItem), delta: 2);
await WindowHelper.WaitFor(() => ApproxEquals(181, GetTop(lastItem)), message: $"Expected 181 but got {GetTop(lastItem)}");
await WindowHelper.WaitFor(() => ApproxEquals(152, GetTop(secondLastItem)), message: $"Expected 152 but got {GetTop(secondLastItem)}");

source.Remove(19);

Expand Down

0 comments on commit 8879083

Please sign in to comment.