Skip to content

Commit

Permalink
Fix Unsafe.Test.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored May 10, 2024
1 parent 664b31d commit 879dbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/SourceExpander.Generator.Test/Generate/Unsafe.Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class UnsafeTest : ExpandGeneratorTestBase
[Fact]
public async Task Allow() => await Impl(true, []);
[Fact]
public async Task NotAllow() => await Impl(false, [DiagnosticResult.CompilerWarning("EXPAND0010").WithSpan("/home/mine/Program.cs", 1, 1, 1, 1)]);
public async Task NotAllow() => await Impl(false, [DiagnosticResult.CompilerWarning("EXPAND0010").WithArguments("/home/mine/Program.cs")]);

static async Task Impl(bool allowUnsafe, DiagnosticResult[] expectedDiagnostics)
{
Expand Down

0 comments on commit 879dbdc

Please sign in to comment.