Skip to content

Commit

Permalink
Add additional test for Obsolete on Rule0073
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurvdv committed Nov 24, 2024
1 parent e9a3873 commit 12d0a04
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BusinessCentral.LinterCop.Test/Rule0073.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public async Task HasDiagnostic(string testCase)
[Test]
[TestCase("BusinessEvent")]
[TestCase("IntegrationEvent")]
[TestCase("ObsoleteMethod")]
[TestCase("ObsoleteObject")]
public async Task NoDiagnostic(string testCase)
{
var code = await File.ReadAllTextAsync(Path.Combine(_testCaseDir, "NoDiagnostic", $"{testCase}.al"))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
codeunit 50100 MyCodeunit
{
[IntegrationEvent(false, false)]
[Obsolete('Lorem ipsum dolor sit amet diam no', '1.0')]
local procedure OnBefore([|IsHandled|]: Boolean)
begin
end;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
codeunit 50100 MyCodeunit
{
ObsoleteState = Pending;

[IntegrationEvent(false, false)]
local procedure OnBefore([|IsHandled|]: Boolean)
begin
end;
}

0 comments on commit 12d0a04

Please sign in to comment.