Skip to content

Commit

Permalink
Fix warnings from xunit analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed May 17, 2024
1 parent b4d6039 commit f877dda
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit f877dda

Please sign in to comment.