|
28 | 28 |
|
29 | 29 | Context "No scheduled task exists, but it should" { |
30 | 30 | $CurrentConfig = "xScheduledTask_Add" |
31 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 31 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
32 | 32 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
33 | 33 |
|
34 | 34 | It "should compile a MOF file without error" { |
|
50 | 50 |
|
51 | 51 | Context "A scheduled task with minutes based repetition exists, but has the wrong settings" { |
52 | 52 | $CurrentConfig = "xScheduledTask_Edit1" |
53 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 53 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
54 | 54 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
55 | 55 |
|
56 | 56 | It "should compile a MOF file without error" { |
|
72 | 72 |
|
73 | 73 | Context "A scheduled task with hourly based repetition exists, but has the wrong settings" { |
74 | 74 | $CurrentConfig = "xScheduledTask_Edit2" |
75 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 75 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
76 | 76 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
77 | 77 |
|
78 | 78 | It "should compile a MOF file without error" { |
|
94 | 94 |
|
95 | 95 | Context "A scheduled task with daily based repetition exists, but has the wrong settings" { |
96 | 96 | $CurrentConfig = "xScheduledTask_Edit3" |
97 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 97 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
98 | 98 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
99 | 99 |
|
100 | 100 | It "should compile a MOF file without error" { |
|
116 | 116 |
|
117 | 117 | Context "A scheduled task exists and is configured with the wrong working directory" { |
118 | 118 | $CurrentConfig = "xScheduledTask_Edit4" |
119 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 119 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
120 | 120 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
121 | 121 |
|
122 | 122 | It "should compile a MOF file without error" { |
|
138 | 138 |
|
139 | 139 | Context "A scheduled task exists and is configured with the wrong executable arguments" { |
140 | 140 | $CurrentConfig = "xScheduledTask_Edit5" |
141 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 141 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
142 | 142 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
143 | 143 |
|
144 | 144 | It "should compile a MOF file without error" { |
|
160 | 160 |
|
161 | 161 | Context "A scheduled task exists, but it shouldn't" { |
162 | 162 | $CurrentConfig = "xScheduledTask_Remove" |
163 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 163 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
164 | 164 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
165 | 165 |
|
166 | 166 | It "should compile a MOF file without error" { |
|
182 | 182 |
|
183 | 183 | Context "A scheduled task exists, and should be enabled" { |
184 | 184 | $CurrentConfig = "xScheduledTask_Enable" |
185 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 185 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
186 | 186 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
187 | 187 |
|
188 | 188 | It "should compile a MOF file without error" { |
|
204 | 204 |
|
205 | 205 | Context "A scheduled task exists, and should be disabled" { |
206 | 206 | $CurrentConfig = "xScheduledTask_Disable" |
207 | | - $ConfigDir = (Join-Path $TestEnvironment.WorkingFolder $CurrentConfig) |
| 207 | + $ConfigDir = (Join-Path $TestDrive $CurrentConfig) |
208 | 208 | $ConfigMof = (Join-Path $ConfigDir "localhost.mof") |
209 | 209 |
|
210 | 210 | It "should compile a MOF file without error" { |
|
0 commit comments