Skip to content

Commit

Permalink
Make test less dependent on specific workload version installed
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 8, 2024
1 parent fe05ff5 commit 26acc45
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/NuGetizer.Tests/given_multitargeting_libraries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,12 @@ public void when_getting_content_then_multitargets()
{
PackagePath = "lib/net8.0/uilibrary.dll"
}));
Assert.Contains(result.Items, item => item.Matches(new
{
PackagePath = "lib/net8.0-windows7.0/uilibrary.dll"
}));
Assert.Contains(result.Items, item => item.Matches(new
{
PackagePath = "lib/net8.0-maccatalyst17.2/uilibrary.dll"
}));

Assert.Contains(result.Items, item => item.TryGetMetadata("PackagePath", out var path) &&
path.StartsWith("lib/net8.0-windows") && path.EndsWith("uilibrary.dll"));

Assert.Contains(result.Items, item => item.TryGetMetadata("PackagePath", out var path) &&
path.StartsWith("lib/net8.0-maccatalyst") && path.EndsWith("uilibrary.dll"));
}
}
}

0 comments on commit 26acc45

Please sign in to comment.