Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,9 @@ public async Task CanGetManifestsWithCustomPageSize(bool anonymous)
AsyncPageable<ArtifactManifestProperties> artifacts = repository.GetManifestPropertiesCollectionAsync();
var pages = artifacts.AsPages(pageSizeHint: pageSize);

int pageCount = 0;
await foreach (var page in pages)
{
Assert.GreaterOrEqual(page.Values.Count, pageSize);
pageCount++;
}

// Assert
Assert.IsTrue(pageCount >= minExpectedPages);
int pageCount = await pages.CountAsync();
Assert.GreaterOrEqual(pageCount, minExpectedPages);
}

[RecordedTest]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task CanGetManifestListProperties()
// Assert
Assert.Contains(tag, properties.Tags.ToList());
Assert.AreEqual(_repositoryName, properties.RepositoryName);
Assert.GreaterOrEqual(helloWorldRelatedArtifacts, properties.RelatedArtifacts.Count);
Assert.GreaterOrEqual(properties.RelatedArtifacts.Count, helloWorldRelatedArtifacts);

Assert.IsTrue(properties.RelatedArtifacts.Any(
artifact =>
Expand Down