1
- // Copyright (c) .NET Foundation. All rights reserved.
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT License. See LICENSE in the project root for license information.
3
3
4
4
using Azure . Functions . Cli . E2ETests . Traits ;
@@ -88,14 +88,17 @@ public void Pack_Powershell_NoBuild_BehaviorUnchanged()
88
88
89
89
var baselineZip = Directory . GetFiles ( PowershellProjectPath , "*.zip" ) . FirstOrDefault ( ) ;
90
90
baselineZip . Should ( ) . NotBeNull ( ) ;
91
- regular . Should ( ) . ValidateZipContents ( baselineZip ! , new [ ]
92
- {
93
- "host.json" ,
94
- "requirements.psd1" ,
95
- Path . Combine ( "HttpTrigger" , "run.ps1" ) ,
96
- "profile.ps1" ,
97
- Path . Combine ( "HttpTrigger" , "function.json" )
98
- } , Log ) ;
91
+ regular . Should ( ) . ValidateZipContents (
92
+ baselineZip ! ,
93
+ new [ ]
94
+ {
95
+ "host.json" ,
96
+ "requirements.psd1" ,
97
+ Path . Combine ( "HttpTrigger" , "run.ps1" ) ,
98
+ "profile.ps1" ,
99
+ Path . Combine ( "HttpTrigger" , "function.json" )
100
+ } ,
101
+ Log ) ;
99
102
100
103
// Remove zip to avoid interference
101
104
File . Delete ( baselineZip ! ) ;
@@ -109,14 +112,17 @@ public void Pack_Powershell_NoBuild_BehaviorUnchanged()
109
112
110
113
var nobuildZip = Directory . GetFiles ( PowershellProjectPath , "*.zip" ) . FirstOrDefault ( ) ;
111
114
nobuildZip . Should ( ) . NotBeNull ( ) ;
112
- nobuild . Should ( ) . ValidateZipContents ( nobuildZip ! , new [ ]
113
- {
114
- "host.json" ,
115
- "requirements.psd1" ,
116
- Path . Combine ( "HttpTrigger" , "run.ps1" ) ,
117
- "profile.ps1" ,
118
- Path . Combine ( "HttpTrigger" , "function.json" )
119
- } , Log ) ;
115
+ nobuild . Should ( ) . ValidateZipContents (
116
+ nobuildZip ! ,
117
+ new [ ]
118
+ {
119
+ "host.json" ,
120
+ "requirements.psd1" ,
121
+ Path . Combine ( "HttpTrigger" , "run.ps1" ) ,
122
+ "profile.ps1" ,
123
+ Path . Combine ( "HttpTrigger" , "function.json" )
124
+ } ,
125
+ Log ) ;
120
126
121
127
File . Delete ( nobuildZip ! ) ;
122
128
}
0 commit comments