Skip to content

Commit

Permalink
Adjust tests dotnet#2
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKrivanek committed Dec 23, 2022
1 parent 4d82bae commit 6728025
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"symbols": {
"paramA": {
"type": "parameter",
"datatype": "string",
"datatype": "bool",
"description": "parameter A description",
"isEnabled": "A_enabled",
"isRequired": true,
"replaces": "placeholderA"
},
"paramB": {
"type": "parameter",
"datatype": "string",
"datatype": "bool",
"isEnabled": "B_enabled",
"description": "parameter B description",
"replaces": "placeholderB"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
// value of paramA: placeholderA
// value of paramB: placeholderB

//#if( A_enabled )
// paramA is enabled
//#else
// paramA is disabled
//#endif

//#if( paramA )
// A is enabled
// paramA is evaluated as true
//#else
// paramA is evaluated as false
//#endif

//#if( B_enabled )
// paramB is enabled
//#else
// paramB is disabled
//#endif

//#if( paramB )
// B is enabled
// paramB is evaluated as true
//#else
// paramB is evaluated as false
//#endif
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Options:
--project <project> The project that should be used for context evaluation.

Template options:
-p, --paramA <paramA> parameter A description
Enabled if: A_enabled == true
Type: string
-pa, --paramB <paramB> parameter B description
Enabled if: B_enabled == true
Type: string
Default: placeholderB
-A, --A_enabled Type: bool
Default: False
-B, --B_enabled Type: bool
Default: False
-p, --paramA parameter A description
Enabled if: A_enabled
Type: bool
-pa, --paramB parameter B description
Enabled if: B_enabled
Type: bool
Default: False
-A, --A_enabled Type: bool
Default: False
-B, --B_enabled Type: bool
Default: False
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

// value of paramA: true
// value of paramA: True
// value of paramB: placeholderB

// A is enabled
// paramA is enabled

// paramA is evaluated as true

// paramB is disabled

// paramB is evaluated as false
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
// value of paramA: placeholderA
// value of paramB: placeholderB

// paramA is disabled

// paramA is evaluated as false

// paramB is disabled

// paramB is evaluated as false
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
// value of paramA: placeholderA
// value of paramB: placeholderB

// paramA is disabled

// paramA is evaluated as false

// paramB is disabled

// paramB is evaluated as false
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

// value of paramA: true
// value of paramB: true
// value of paramA: True
// value of paramB: True

// A is enabled
// paramA is enabled

// B is enabled
// paramA is evaluated as true

// paramB is enabled

// paramB is evaluated as true
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

// value of paramA: true
// value of paramA: True
// value of paramB: placeholderB

// A is enabled
// paramA is enabled

// paramA is evaluated as true

// paramB is disabled

// paramB is evaluated as false
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

// value of paramA: true
// value of paramA: True
// value of paramB: placeholderB

// A is enabled
// paramA is enabled

// paramA is evaluated as true

// paramB is disabled

// paramB is evaluated as false

0 comments on commit 6728025

Please sign in to comment.