@@ -71,7 +71,7 @@ public void StandAloneThreshold()
71
71
string coverletToolCommandPath = InstallTool ( clonedTemplateProject . ProjectRootPath ! ) ;
72
72
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
73
73
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
74
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
74
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
75
75
if ( ! string . IsNullOrEmpty ( standardError ) )
76
76
{
77
77
_output . WriteLine ( standardError ) ;
@@ -92,7 +92,7 @@ public void StandAloneThresholdLine()
92
92
string coverletToolCommandPath = InstallTool ( clonedTemplateProject . ProjectRootPath ! ) ;
93
93
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
94
94
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
95
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
95
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
96
96
if ( ! string . IsNullOrEmpty ( standardError ) )
97
97
{
98
98
_output . WriteLine ( standardError ) ;
@@ -113,7 +113,7 @@ public void StandAloneThresholdLineAndMethod()
113
113
string coverletToolCommandPath = InstallTool ( clonedTemplateProject . ProjectRootPath ! ) ;
114
114
DotnetCli ( $ "build -f { _buildTargetFramework } { clonedTemplateProject . ProjectRootPath } ", out string standardOutput , out string standardError ) ;
115
115
string publishedTestFile = clonedTemplateProject . GetFiles ( "*" + ClonedTemplateProject . AssemblyName + ".dll" ) . Single ( f => ! f . Contains ( "obj" ) && ! f . Contains ( "ref" ) ) ;
116
- Assert . False ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
116
+ Assert . True ( RunCommand ( coverletToolCommandPath , $ "\" { Path . GetDirectoryName ( publishedTestFile ) } \" --target \" dotnet\" --targetargs \" { publishedTestFile } \" --threshold 80 --threshold-type line --threshold-type method --output \" { clonedTemplateProject . ProjectRootPath } \" \\ ", out standardOutput , out standardError ) ) ;
117
117
if ( ! string . IsNullOrEmpty ( standardError ) )
118
118
{
119
119
_output . WriteLine ( standardError ) ;
0 commit comments