Skip to content

Commit

Permalink
Merge pull request #52 from Evodim/fixes/TableClient-getpaged
Browse files Browse the repository at this point in the history
fix unit tests
  • Loading branch information
medevod authored May 2, 2023
2 parents 554a960 + 4d802c5 commit 5d9a5c0
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1194,14 +1194,6 @@ public async Task Should_Get_Paged_Entities()
{
page = await personClient.GetPagedAsync(nextPageToken: page.ContinuationToken);

if (page.isLastPage)
{
page.Entities.Count().Should().BeLessThanOrEqualTo(10);
}
else
{
page.Entities.Count().Should().Be(10);
}
entityCount += page.Entities.Count();
}
while (!page.isLastPage);
Expand All @@ -1223,7 +1215,7 @@ public async Task Should_Get_Paged_Entities()
[TestMethod]
public async Task Should_Get_Paged_Entities_With_Custom_Max_Per_Page(params int[] inputs)
{
int totalCount = inputs[0];
int totalCount = inputs[0];
int maxPerPage = inputs[1];

var persons = Fakers.CreateFakePerson().Generate(totalCount);
Expand Down

0 comments on commit 5d9a5c0

Please sign in to comment.