Skip to content

Commit

Permalink
Anchor Verify.MSTest.SourceGenerator at 4.9 (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jul 25, 2024
1 parent 1f08dbc commit baa76fe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Benchmarks/Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
<ProjectReference Include="..\Verify\Verify.csproj" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591;CS0649;xUnit1026;xUnit1013;CS1573;VerifyTestsProjectDir;VerifySetParameters;PolyFillTargetsForNuget</NoWarn>
<Version>26.1.0</Version>
<Version>26.1.1</Version>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<AssemblyVersion>1.0.0</AssemblyVersion>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="27.0.2" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageVersion Include="MSTest" Version="3.5.0" />
<PackageVersion Include="MSTest.TestFramework" Version="3.5.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using CSharpExtensions = Microsoft.CodeAnalysis.CSharp.CSharpExtensions;

public class CodeAnalysisVersionTests(ITestOutputHelper output) : TestBase(output)
{
// prevent a CS9057 https://github.com/VerifyTests/Verify/issues/1255
[Fact]
public void AssertVersion()
{
var assemblyName = typeof(CSharpExtensions).Assembly.GetName();
Assert.Equal(new(4, 9, 0, 0), assemblyName.Version);
}
}

0 comments on commit baa76fe

Please sign in to comment.