Skip to content

Commit

Permalink
Missed a couple Verify collapses
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jul 17, 2024
1 parent a07fbd2 commit 6c63c7b
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,7 @@ public class TestClass {{
public void TestMethod(bool a) {{ }}
}}
""", value);
var expected =
Verify
.Diagnostic("xUnit1010")
.WithLocation(0)
.WithArguments("a", "bool");
var expected = Verify.Diagnostic("xUnit1010").WithLocation(0).WithArguments("a", "bool");

await Verify.VerifyAnalyzer(source, expected);
}
Expand Down Expand Up @@ -1438,14 +1434,8 @@ public void TestMethod(int a, params {1}[] b) {{ }}
""", param, type);
var expected = new[]
{
Verify
.Diagnostic("xUnit1012")
.WithLocation(0)
.WithArguments("b", type),
Verify
.Diagnostic("xUnit1012")
.WithLocation(1)
.WithArguments("b", type),
Verify.Diagnostic("xUnit1012").WithLocation(0).WithArguments("b", type),
Verify.Diagnostic("xUnit1012").WithLocation(1).WithArguments("b", type),
};

await Verify.VerifyAnalyzer(LanguageVersion.CSharp8, source, expected);
Expand Down

0 comments on commit 6c63c7b

Please sign in to comment.