@@ -73,7 +73,7 @@ public void StandAloneThreshold()
73
73
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
74
74
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
75
75
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
76
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
76
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
77
77
if ( ! string . IsNullOrEmpty ( standardError ) )
78
78
{
79
79
_output . WriteLine ( standardError ) ;
@@ -99,7 +99,7 @@ public void StandAloneThresholdLine()
99
99
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
100
100
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
101
101
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
102
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
102
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
103
103
if ( ! string . IsNullOrEmpty ( standardError ) )
104
104
{
105
105
_output . WriteLine ( standardError ) ;
@@ -125,7 +125,7 @@ public void StandAloneThresholdLineAndMethod()
125
125
string outputPath = $ "{ clonedTemplateProject . ProjectRootPath } { Path . DirectorySeparatorChar } coverage.json";
126
126
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
127
127
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
128
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
128
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { outputPath } \" ", out standardOutput , out standardError ) ) ;
129
129
if ( ! string . IsNullOrEmpty ( standardError ) )
130
130
{
131
131
_output . WriteLine ( standardError ) ;
0 commit comments