You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Core generator snapshot tests emit nullable and constant-assertion warnings #7428
Building the core source generator snapshot tests emits a nullable dereference warning and an assertion-on-constant warning from the test code. These diagnostics add noise to routine test validation; the test project should build without them.
Reproduction
At 7c87a5e, on macOS arm64 with .NET SDK 10.0.403, run:
dotnet test --project tests/TUnit.Core.SourceGenerator.Tests --framework net10.0
Expected and actual
Expected: no warnings from these test sources.
Actual: NuGetDownloader.cs:35 emits CS8602 (possible null dereference), and AssemblyNamesWithDashesTests.cs:23 emits TUnitAssertions0005 (Assert.That(...) should not use a constant value). Both files have the same relevant code on main at d8badac. Other build warnings are tracked separately in #7410, #7412 and #7419.
Activity
Fix core generator test warnings (#7428) (#7494)