Skip to content

Commit

Permalink
Update HelloWorld.Test.al
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk authored Dec 8, 2024
1 parent af6a376 commit 7c98969
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Common/Common.Test/HelloWorld.Test.al
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,12 @@ codeunit 90000 "HelloWorld Test"
Subtype = Test;

[Test]
[HandlerFunctions('HelloWorldMessageHandler')]
procedure TestHelloWorldMessage()
var
CustList: TestPage "Customer List";
begin
CustList.OpenView();
CustList.Close();
// if (not MessageDisplayed) then
// ERROR('Message was not displayed!');
end;

[MessageHandler]
procedure HelloWorldMessageHandler(Message: Text[1024])
begin
MessageDisplayed := MessageDisplayed or (Message = 'App published: Hello world');
end;

var
MessageDisplayed: Boolean;
}

0 comments on commit 7c98969

Please sign in to comment.