diff --git a/src/FluentAssertions.Analyzers.Tests/Tips/CollectionTests.cs b/src/FluentAssertions.Analyzers.Tests/Tips/CollectionTests.cs index 3b1a940..a9a5f6e 100644 --- a/src/FluentAssertions.Analyzers.Tests/Tips/CollectionTests.cs +++ b/src/FluentAssertions.Analyzers.Tests/Tips/CollectionTests.cs @@ -329,7 +329,7 @@ public class CollectionTests [AssertionDiagnostic(@"var array = new string[1, 1]; array.Length.Should().Be(0{0});")] [AssertionDiagnostic(@"var array = new string[2, 2]; array.Length.Should().Be(0{0});")] [AssertionDiagnostic(@"var array = new string[3, 3, 3]; array.Length.Should().Be(0{0});")] - [AssertionDiagnostic(@"int[] array1 = [1, 2, 3]; int[] array2 = [4, 5, 6]; var both = x.Concat(y).ToArray(); (array1.Length + array2.Length).Should().Be(both.Length{0});")] + [AssertionDiagnostic(@"int[] array1 = [1, 2, 3]; int[] array2 = [4, 5, 6]; var both = array1.Concat(array2).ToArray(); (array1.Length + array2.Length).Should().Be(both.Length{0});")] [Implemented(Reason = "https://github.com/fluentassertions/fluentassertions.analyzers/issues/309")] public void CollectionShouldHaveCount_LengthShouldBe_TestNoAnalyzer(string assertion) => DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(new StringBuilder() .AppendLine("using System;")