@@ -19,7 +19,7 @@ Import-Module $script:moduleName -Force -ErrorAction 'Stop'
19
19
# endregion HEADER
20
20
21
21
InModuleScope $script :moduleName {
22
- Describe ' Get-ClassResourcePropertyType ' {
22
+ Describe ' Get-DscResourceAttributeProperty ' {
23
23
Context ' When a property have the named attribute argument '' Key'' ' {
24
24
BeforeAll {
25
25
$mockClassBasedScript = {
@@ -51,7 +51,7 @@ InModuleScope $script:moduleName {
51
51
}
52
52
53
53
It ' Should return the state as '' Key'' ' {
54
- $result = Get-ClassResourcePropertyType - PropertyInfo $mockProperties [0 ] - Verbose
54
+ $result = Get-DscResourceAttributeProperty - PropertyInfo $mockProperties [0 ] - Verbose
55
55
56
56
$result | Should - Be ' Key'
57
57
}
@@ -92,7 +92,7 @@ InModuleScope $script:moduleName {
92
92
93
93
It ' Should return the state as '' Write'' ' {
94
94
# Makes sure to test the second property (since Key is always needed)
95
- $result = Get-ClassResourcePropertyType - PropertyInfo $mockProperties [1 ] - Verbose
95
+ $result = Get-DscResourceAttributeProperty - PropertyInfo $mockProperties [1 ] - Verbose
96
96
97
97
$result | Should - Be ' Write'
98
98
}
@@ -133,7 +133,7 @@ InModuleScope $script:moduleName {
133
133
134
134
It ' Should return the state as '' Required'' ' {
135
135
# Makes sure to test the second property (since Key is always needed)
136
- $result = Get-ClassResourcePropertyType - PropertyInfo $mockProperties [1 ] - Verbose
136
+ $result = Get-DscResourceAttributeProperty - PropertyInfo $mockProperties [1 ] - Verbose
137
137
138
138
$result | Should - Be ' Required'
139
139
}
@@ -174,7 +174,7 @@ InModuleScope $script:moduleName {
174
174
175
175
It ' Should return the state as '' Read'' ' {
176
176
# Makes sure to test the second property (since Key is always needed)
177
- $result = Get-ClassResourcePropertyType - PropertyInfo $mockProperties [1 ] - Verbose
177
+ $result = Get-DscResourceAttributeProperty - PropertyInfo $mockProperties [1 ] - Verbose
178
178
179
179
$result | Should - Be ' Read'
180
180
}
0 commit comments