@@ -46,7 +46,7 @@ public void TestMsbuild()
4646 Assert . Equal ( 0 , result ) ;
4747 Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
4848 Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
49- string coverageFileName = $ "coverage.{ _buildTargetFramework } . json";
49+ string coverageFileName = $ "coverage.json";
5050 Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
5151 AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
5252 }
@@ -67,7 +67,7 @@ public void TestMsbuild_NoCoverletOutput()
6767 Assert . Equal ( 0 , result ) ;
6868 Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
6969 Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
70- string coverageFileName = $ "coverage.{ _buildTargetFramework } . json";
70+ string coverageFileName = $ "coverage.json";
7171 Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
7272 AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
7373 }
@@ -88,7 +88,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameWithoutExtension()
8888 Assert . Equal ( 0 , result ) ;
8989 Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
9090 Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
91- string coverageFileName = $ "file.{ _buildTargetFramework } . json";
91+ string coverageFileName = $ "file.json";
9292 Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
9393 AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
9494 }
@@ -100,7 +100,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameExtension()
100100 Assert . Equal ( 0 , DotnetCli ( $ "test -c { _buildConfiguration } -f { _buildTargetFramework } \" { 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 ) ) ;
101101 Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
102102 Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
103- string coverageFileName = $ "file.{ _buildTargetFramework } . ext";
103+ string coverageFileName = $ "file.ext";
104104 Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
105105 AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
106106 }
@@ -143,7 +143,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameWithDoubleExtension()
143143 }
144144 Assert . Contains ( "Passed!" , standardOutput , StringComparison . Ordinal ) ;
145145 Assert . Contains ( "| coverletsamplelib.integration.template | 100% | 100% | 100% |" , standardOutput , StringComparison . Ordinal ) ;
146- string coverageFileName = $ "file.ext1.{ _buildTargetFramework } . ext2";
146+ string coverageFileName = $ "file.ext1.ext2";
147147 Assert . True ( File . Exists ( Path . Combine ( clonedTemplateProject . ProjectRootPath , coverageFileName ) ) ) ;
148148 AssertCoverage ( clonedTemplateProject , coverageFileName ) ;
149149 }
0 commit comments