Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings from xunit analyzer #488

Merged
merged 1 commit into from
May 17, 2024
Merged
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
12 changes: 6 additions & 6 deletions src/NuGetizer.Tests/CreatePackageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void when_creating_package_with_dependency_and_include_assets_then_contai
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(1, manifest.Metadata.DependencyGroups.First().Packages.First().Include.Count);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages.First().Include);
Assert.Equal("all", manifest.Metadata.DependencyGroups.First().Packages.First().Include[0]);
}

Expand All @@ -276,7 +276,7 @@ public void when_creating_package_with_dependency_and_exclude_assets_then_contai
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(1, manifest.Metadata.DependencyGroups.First().Packages.First().Exclude.Count);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages.First().Exclude);
Assert.Equal("all", manifest.Metadata.DependencyGroups.First().Packages.First().Exclude[0]);
}

Expand All @@ -301,7 +301,7 @@ public void when_creating_package_with_dependency_and_without_include_assets_the
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(0, manifest.Metadata.DependencyGroups.First().Packages.First().Include.Count);
Assert.Empty(manifest.Metadata.DependencyGroups.First().Packages.First().Include);
}

[Fact]
Expand All @@ -325,7 +325,7 @@ public void when_creating_package_with_dependency_and_without_exclude_assets_the
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(0, manifest.Metadata.DependencyGroups.First().Packages.First().Exclude.Count);
Assert.Empty(manifest.Metadata.DependencyGroups.First().Packages.First().Exclude);
}

[Fact]
Expand All @@ -350,7 +350,7 @@ public void when_creating_package_with_dependency_packinclude_then_contains_depe
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(1, manifest.Metadata.DependencyGroups.First().Packages.First().Include.Count);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages.First().Include);
Assert.Equal("build", manifest.Metadata.DependencyGroups.First().Packages.First().Include[0]);
}

Expand All @@ -376,7 +376,7 @@ public void when_creating_package_with_dependency_packexclude_assets_then_contai
Assert.Single(manifest.Metadata.DependencyGroups);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages);
Assert.Equal("Newtonsoft.Json", manifest.Metadata.DependencyGroups.First().Packages.First().Id);
Assert.Equal(1, manifest.Metadata.DependencyGroups.First().Packages.First().Exclude.Count);
Assert.Single(manifest.Metadata.DependencyGroups.First().Packages.First().Exclude);
Assert.Equal("build", manifest.Metadata.DependencyGroups.First().Packages.First().Exclude[0]);
}

Expand Down
Loading