Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control add in workaround #3027

Merged
merged 3 commits into from Jun 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions Modules/DevTools/TestFramework/Any/app/app.json
@@ -0,0 +1,23 @@
{
"id": "e7320ebb-08b3-4406-b1ec-b4927d3e280b",
"name": "Any",
"publisher": "Microsoft",
"brief": "Library used to generate any values.",
"description": "In test code, Any should be used to generate any values.",
"version": "1.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [],
"screenshots": [],
"platform": "14.0.0.0",
"idRanges": [
{
"from": 130500,
"to": 130500
}
],
"target": "Cloud"
}
25 changes: 25 additions & 0 deletions Modules/DevTools/TestFramework/Any/app/src/Any.Codeunit.al
@@ -0,0 +1,25 @@
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

/// <summary>
///
/// </summary>
codeunit 130500 "Any"
{

SingleInstance = true;

// <summary>.
// Generates a random integer between [1, Max]. 0 Returns 1 and negative numbers are treated as positive.
// </summary>
// <param name="Max">Max range of the number.</param>
// <return>Generated int value</return>
[Scope('OnPrem')]
procedure RandInt("Max": Integer): Integer
begin
EXIT(RANDOM(Max));
end;
}

21 changes: 21 additions & 0 deletions Modules/DevTools/TestFramework/Assert/app/app.json
@@ -0,0 +1,21 @@
{
"id": "dd0be2ea-f733-4d65-bb34-a28f4624fb14",
"name": "Library Assert",
"publisher": "Microsoft",
"brief": "Library used in tests to verify if the values are as expected. ",
"description": "In test code Library Assert should be used to compare the values and throw errors. TESTFIELD and ERROR must not be used in test code.",
"version": "1.0.0.0",
"privacyStatement": "",
"EULA": "",
"help": "",
"url": "",
"logo": "",
"dependencies": [],
"screenshots": [],
"platform": "15.0.0.0",
"idRanges": [{
"from": 130002,
"to": 130002
}],
"target": "Cloud"
}