Skip to content

Commit

Permalink
fix(server): tests
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandrs Vaguscenko <aleksandrs.vaguscenko@gmail.com>
  • Loading branch information
Alequez97 committed Dec 2, 2024
1 parent eda0b35 commit 94c75df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 94c75df

Please sign in to comment.