-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test IncrementalLoadingCollection itemsPerPage ctor param #4023
Conversation
Thanks RosarioPulella for opening a Pull Request! The reviewers will test the PR and highlight if there is any conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌 |
@RosarioPulella was this just to check tests, should we commit this or are we waiting on something else still? |
The original intention was to explore |
|
||
var requests = new List<Task>(); | ||
|
||
for (int pageNum = 1; pageNum <= Pages; pageNum++) | ||
for (var pageNum = 1; pageNum <= pages; pageNum++) | ||
{ | ||
requests.Add(collection.LoadMoreItemsAsync(0).AsTask() | ||
.ContinueWith(t => Assert.IsTrue(t.IsCompletedSuccessfully))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we check the interim results for pageSize here as well as we're passing that into the test now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure its that easy since these calls are happening asynchronously and we would need to test ageist collection
which will be changing as these tasks complete.
Tests different items per page for
IncrementalLoadingCollection
PR Type
What kind of change does this PR introduce?
Tests different values for
itemsPerPage
in the IncrementalLoadingCollection ctor.What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Other information