From 811f7d235d4cdd3a19de5a7e328728a206393a95 Mon Sep 17 00:00:00 2001 From: Costin Zaharia Date: Fri, 17 May 2024 14:51:03 +0200 Subject: [PATCH] Update the lines order --- .../SonarAnalyzer.Test/Rules/Utilities/MetricsAnalyzerTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/MetricsAnalyzerTest.cs b/analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/MetricsAnalyzerTest.cs index ce73bd8f2e6..54aa816f171 100644 --- a/analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/MetricsAnalyzerTest.cs +++ b/analyzers/tests/SonarAnalyzer.Test/Rules/Utilities/MetricsAnalyzerTest.cs @@ -69,7 +69,7 @@ public void VerifyMetrics_Razor() => var metrics = messages.Single(x => x.FilePath.EndsWith(RazorFileName)); metrics.ClassCount.Should().Be(1); - metrics.CodeLine.Should().BeEquivalentTo(new[] { 2, 1, 3, 5, 8, 10, 13, 15, 16, 17, 19, 22, 23, 24, 26, 28, 29, 32, 33, 34, 36, 37, 39, 40, 43 }); + metrics.CodeLine.Should().BeEquivalentTo(new[] { 1, 2, 3, 5, 8, 10, 13, 15, 16, 17, 19, 22, 23, 24, 26, 28, 29, 32, 33, 34, 36, 37, 39, 40, 43 }); metrics.CognitiveComplexity.Should().Be(3); metrics.Complexity.Should().Be(4); metrics.ExecutableLines.Should().BeEquivalentTo(new[] { 13, 15, 28, 29, 32, 36 });