diff --git a/src/NuGetizer.Tests/CreatePackageTests.cs b/src/NuGetizer.Tests/CreatePackageTests.cs index cd569e5c..13048cdf 100644 --- a/src/NuGetizer.Tests/CreatePackageTests.cs +++ b/src/NuGetizer.Tests/CreatePackageTests.cs @@ -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]); } @@ -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]); } @@ -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] @@ -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] @@ -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]); } @@ -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]); }