@@ -152,7 +152,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameWithDoubleExtension()
152
152
public void Test_MultipleTargetFrameworkReport_NoCoverletOutput ( )
153
153
{
154
154
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
155
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
155
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
156
156
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
157
157
DotnetCli ( $ "test -c { _buildConfiguration } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
158
158
if ( ! string . IsNullOrEmpty ( standardError ) )
@@ -178,7 +178,7 @@ public void Test_MultipleTargetFrameworkReport_NoCoverletOutput()
178
178
public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder ( )
179
179
{
180
180
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
181
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
181
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
182
182
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
183
183
bool result = DotnetCli ( $ "test -c { _buildConfiguration } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ ", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
184
184
if ( ! string . IsNullOrEmpty ( standardError ) )
@@ -206,7 +206,7 @@ public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder()
206
206
public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWithoutExtension ( )
207
207
{
208
208
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
209
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
209
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
210
210
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
211
211
DotnetCli ( $ "test -c { _buildConfiguration } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ file", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
212
212
if ( ! string . IsNullOrEmpty ( standardError ) )
@@ -232,11 +232,11 @@ public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWit
232
232
public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWithExtension_SpecifyFramework ( )
233
233
{
234
234
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
235
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
235
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
236
236
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
237
237
Assert . True ( clonedTemplateProject . IsMultipleTargetFramework ( ) ) ;
238
238
string [ ] frameworks = clonedTemplateProject . GetTargetFrameworks ( ) ;
239
- Assert . Equal ( 3 , frameworks . Length ) ;
239
+ Assert . Equal ( 2 , frameworks . Length ) ;
240
240
string framework = frameworks . FirstOrDefault ( ) ! ;
241
241
DotnetCli ( $ "test -c { _buildConfiguration } -f { framework } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ file.ext", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
242
242
if ( ! string . IsNullOrEmpty ( standardError ) )
@@ -269,7 +269,7 @@ public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWit
269
269
public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWithExtension ( )
270
270
{
271
271
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
272
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
272
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
273
273
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
274
274
DotnetCli ( $ "test -c { _buildConfiguration } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ file.ext", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
275
275
if ( ! string . IsNullOrEmpty ( standardError ) )
@@ -295,7 +295,7 @@ public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWit
295
295
public void Test_MultipleTargetFrameworkReport_CoverletOutput_Folder_FileNameWithDoubleExtension ( )
296
296
{
297
297
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject ( ) ;
298
- string [ ] targetFrameworks = new string [ ] { "net6.0" , "net7.0" , " net8.0" } ;
298
+ string [ ] targetFrameworks = new string [ ] { "net6.0" , "net8.0" } ;
299
299
UpdateProjectTargetFramework ( clonedTemplateProject , targetFrameworks ) ;
300
300
DotnetCli ( $ "test -c { _buildConfiguration } \" { clonedTemplateProject . ProjectRootPath } \" /p:CollectCoverage=true /p:Include=\" [{ ClonedTemplateProject . AssemblyName } ]*DeepThought\" /p:IncludeTestAssembly=true /p:CoverletOutput=\" { clonedTemplateProject . ProjectRootPath } \" \\ file.ext1.ext2", out string standardOutput , out string standardError , clonedTemplateProject . ProjectRootPath ! ) ;
301
301
if ( ! string . IsNullOrEmpty ( standardError ) )
0 commit comments