Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Improve validation of embedded resources in tests - #2319

Merged
vitek-karas merged 2 commits into
dotnet:mainfrom
vitek-karas:BetterResourceValidation
Oct 19, 2021
Merged

vitek-karas merged 2 commits into
dotnet:mainfrom
vitek-karas:BetterResourceValidation

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

Actually compare the contents of the embedded resource (not just its existence).

Actually compare the contents of the embedded resource (not just its existence).
}

if (expectedResourceNames.Count > 0) {
Assert.Fail ($"Resource '{expectedResourceNames.First ()}' should be kept.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be Assert.IsEmpty

@vitek-karas
vitek-karas merged commit c75a524 into dotnet:main Oct 19, 2021
@vitek-karas
vitek-karas deleted the BetterResourceValidation branch October 19, 2021 15:29
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
Actually compare the contents of the embedded resource (not just its existence).

Commit migrated from dotnet/linker@c75a524
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants