diff --git a/src/NuGetizer.Tests/given_multitargeting_libraries.cs b/src/NuGetizer.Tests/given_multitargeting_libraries.cs index 9edf69be..8e83952a 100644 --- a/src/NuGetizer.Tests/given_multitargeting_libraries.cs +++ b/src/NuGetizer.Tests/given_multitargeting_libraries.cs @@ -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")); } } }