mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 06:36:55 +01:00
Narrow IsHandled, label-scope, UI-handler, checkpoint, and bulk-operation guidance to evidence-backed false-positive boundaries. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
28 lines
711 B
AL
28 lines
711 B
AL
codeunit 50401 "Test UI Handler Proof Bad"
|
|
{
|
|
Subtype = Test;
|
|
|
|
[Test]
|
|
[HandlerFunctions('CustomerCardHandler')]
|
|
procedure CustomerCardActionSucceeds()
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.Get('10000');
|
|
ActionSucceeded := true;
|
|
|
|
Page.RunModal(Page::"Customer Card", Customer);
|
|
|
|
// This only proves a value assigned before the action stayed true.
|
|
Assert.IsTrue(ActionSucceeded, 'The customer card action failed.');
|
|
end;
|
|
|
|
[ModalPageHandler]
|
|
procedure CustomerCardHandler(var CustomerCard: TestPage "Customer Card")
|
|
begin
|
|
end;
|
|
|
|
var
|
|
Assert: Codeunit "Library Assert";
|
|
ActionSucceeded: Boolean;
|
|
}
|