Skip to content

Commit 5332bbd

Browse files
committed
update tests
1 parent 74dc271 commit 5332bbd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/AssemblyMetadata.Generators/AssemblyMetadataGenerator.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ namespace AssemblyMetadata.Generators;
1111
[Generator(LanguageNames.CSharp)]
1212
public class AssemblyMetadataGenerator : IIncrementalGenerator
1313
{
14-
private static readonly HashSet<string> _attributes = new()
15-
{
14+
private static readonly HashSet<string> _attributes =
15+
[
1616
nameof(AssemblyCompanyAttribute),
1717
nameof(AssemblyConfigurationAttribute),
1818
nameof(AssemblyCopyrightAttribute),
@@ -31,7 +31,8 @@ public class AssemblyMetadataGenerator : IIncrementalGenerator
3131
nameof(AssemblyVersionAttribute),
3232
nameof(NeutralResourcesLanguageAttribute),
3333
nameof(TargetFrameworkAttribute),
34-
};
34+
"UserSecretsIdAttribute"
35+
];
3536

3637
public void Initialize(IncrementalGeneratorInitializationContext context)
3738
{

test/AssemblyMetadata.Generators.Tests/AssemblyMetadata.Generators.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</PropertyGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="coverlet.collector" Version="6.0.1">
37+
<PackageReference Include="coverlet.collector" Version="6.0.2">
3838
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3939
<PrivateAssets>all</PrivateAssets>
4040
</PackageReference>
@@ -43,10 +43,10 @@
4343
<PrivateAssets>all</PrivateAssets>
4444
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4545
</PackageReference>
46-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
46+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
4747
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
4848
<PackageReference Include="MinVer" Version="5.0.0" PrivateAssets="All" />
49-
<PackageReference Include="Verify.Xunit" Version="23.2.2" />
49+
<PackageReference Include="Verify.Xunit" Version="23.7.1" />
5050
<PackageReference Include="xunit" Version="2.7.0" />
5151
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
5252
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

test/AssemblyMetadata.Generators.Tests/GeneratorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace AssemblyMetadata.Generators.Tests;
99

10-
[UsesVerify]
1110
public class GeneratorTests
1211
{
1312
[Fact]

0 commit comments

Comments
 (0)