From 94c75dfd9554d22fe67cac88c78c02b0ef71b3a5 Mon Sep 17 00:00:00 2001 From: Aleksandrs Vaguscenko Date: Tue, 3 Dec 2024 01:24:50 +0200 Subject: [PATCH] fix(server): tests Signed-off-by: Aleksandrs Vaguscenko --- .../AsyncMethodSuffixAnalyzerTests.cs | 4 ++-- .../PropertyAttributeOnNextLineAnalyzerTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AsyncMethodSuffixAnalyzerTests.cs b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AsyncMethodSuffixAnalyzerTests.cs index 91001eee..816f173f 100644 --- a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AsyncMethodSuffixAnalyzerTests.cs +++ b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/AsyncMethodSuffixAnalyzerTests.cs @@ -18,7 +18,7 @@ public async Task DoWork() { } }"; var expectedDiagnostic = new DiagnosticResult("GOMOKU002", DiagnosticSeverity.Error) - .WithMessage("Method 'DoWork' is async but does not end with 'Async'.") + .WithMessage("Method 'DoWork' is async but does not end with 'Async'") .WithSpan(5, 22, 5, 28) .WithArguments("DoWork"); @@ -41,7 +41,7 @@ public class TestClass }"; var expectedDiagnostic = new DiagnosticResult("GOMOKU002", DiagnosticSeverity.Error) - .WithMessage("Method 'DoWork' is async but does not end with 'Async'.") + .WithMessage("Method 'DoWork' is async but does not end with 'Async'") .WithSpan(5, 16, 5, 22) // Highlights 'DoWork' .WithArguments("DoWork"); diff --git a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/PropertyAttributeOnNextLineAnalyzerTests.cs b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/PropertyAttributeOnNextLineAnalyzerTests.cs index 582b5072..9666926f 100644 --- a/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/PropertyAttributeOnNextLineAnalyzerTests.cs +++ b/GomokuServer/tests/GomokuServer.Analyzer.UnitTests/PropertyAttributeOnNextLineAnalyzerTests.cs @@ -16,7 +16,7 @@ public async Task PropertyOnSameLineAsAttribute_ShouldReportDiagnostic() }"; var expectedDiagnostic = new DiagnosticResult("GOMOKU001", DiagnosticSeverity.Error) - .WithMessage("Property 'Name' should be placed on a new line after its attribute.") + .WithMessage("Property 'Name' should be placed on a new line after its attribute") .WithSpan(3, 4, 3, 85) .WithArguments("Name");