Skip to content

Commit

Permalink
Added spec ref
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Dec 29, 2024
1 parent f966f16 commit 699fc24
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ Describe 'Module tests' -Tag 'Module' {

Context 'UDT-spcific' {

It '[<moduleFolderName>] A UDT should not be of type array, but instead the parameter that uses it.' -TestCases $moduleFolderTestCases -Tag 'UDT' {
It '[<moduleFolderName>] A UDT should not be of type array, but instead the parameter that uses it. AVM-Spec-Ref: BCPNFR18.' -TestCases $moduleFolderTestCases -Tag 'UDT' {

param(
[hashtable] $templateFileContent
Expand All @@ -1197,7 +1197,7 @@ Describe 'Module tests' -Tag 'Module' {
$incorrectTypes | Should -BeNullOrEmpty -Because ('no user-defined type should be declared as an array, but instead the parameter that uses the type. This makes the template and its parameters easier to understand. Found incorrect items: [{0}].' -f ($incorrectTypes -join ', '))
}

It '[<moduleFolderName>] A UDT should not be nullable, but instead the parameter that uses it.' -TestCases $moduleFolderTestCases -Tag 'UDT' {
It '[<moduleFolderName>] A UDT should not be nullable, but instead the parameter that uses it. AVM-Spec-Ref: BCPNFR18.' -TestCases $moduleFolderTestCases -Tag 'UDT' {

param(
[hashtable] $templateFileContent
Expand All @@ -1218,7 +1218,7 @@ Describe 'Module tests' -Tag 'Module' {
$incorrectTypes | Should -BeNullOrEmpty -Because ('no user-defined type should be declared as nullable, but instead the parameter that uses the type. This makes the template and its parameters easier to understand. Found incorrect items: [{0}].' -f ($incorrectTypes -join ', '))
}

It '[<moduleFolderName>] A UDT should always end wth the suffix "Type".' -TestCases $moduleFolderTestCases -Tag 'UDT' {
It '[<moduleFolderName>] A UDT should always end wth the suffix "Type". AVM-Spec-Ref: BCPNFR19.' -TestCases $moduleFolderTestCases -Tag 'UDT' {

param(
[hashtable] $templateFileContent
Expand Down

0 comments on commit 699fc24

Please sign in to comment.