-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure analyzers are defined as PrivateAssets.
- Loading branch information
Showing
3 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
namespace NuGet_packages_specs | ||
namespace NuGet_packages_specs; | ||
|
||
public class All_NuGet_Packages | ||
{ | ||
public class All_NuGet_Packages | ||
[TestCaseSource(nameof(Packages))] | ||
public void Are_signed(Assembly package) | ||
=> package.Should().HavePublicKey( | ||
"0024000004800000940000000602000000240000525341310004000001000100EF35DF58AA7FEC73A11E70572E6B3791601006EF3FB1C6C1F1A402BA83BB2EDC975C61E8A32D792EDB864127F0D2C67EB7A64A9D3A0CDB0B1BB37FF2D0FCFD7990304623C044439D04DAC49624CC6D7937581419D995C2689F9898EC09C941B3EB3CAB8E4FC8F90B4AE5D45AB03D691D4D1F4B68450DAD41FED46671376934B0"); | ||
|
||
[TestCaseSource(nameof(Packages))] | ||
public void x(Assembly package) | ||
{ | ||
[TestCaseSource(nameof(Packages))] | ||
public void Are_signed(Assembly package) | ||
=> package.Should().HavePublicKey( | ||
"0024000004800000940000000602000000240000525341310004000001000100EF35DF58AA7FEC73A11E70572E6B3791601006EF3FB1C6C1F1A402BA83BB2EDC975C61E8A32D792EDB864127F0D2C67EB7A64A9D3A0CDB0B1BB37FF2D0FCFD7990304623C044439D04DAC49624CC6D7937581419D995C2689F9898EC09C941B3EB3CAB8E4FC8F90B4AE5D45AB03D691D4D1F4B68450DAD41FED46671376934B0"); | ||
var references = package.GetReferencedAssemblies(); | ||
|
||
foreach(var reference in references) | ||
{ | ||
Console.WriteLine(reference); | ||
} | ||
|
||
private static IEnumerable<Assembly> Packages | ||
references.Should().BeEmpty(); | ||
} | ||
|
||
|
||
private static IEnumerable<Assembly> Packages | ||
{ | ||
get | ||
{ | ||
get | ||
{ | ||
yield return typeof(Qowaiv.SingleValueObjectAttribute).Assembly; | ||
yield return typeof(Qowaiv.Data.SvoParameter).Assembly; | ||
yield return typeof(Qowaiv.TestTools.JsonTester).Assembly; | ||
} | ||
yield return typeof(Qowaiv.SingleValueObjectAttribute).Assembly; | ||
yield return typeof(Qowaiv.Data.SvoParameter).Assembly; | ||
yield return typeof(Qowaiv.TestTools.JsonTester).Assembly; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters