60 references to Failure
Microsoft.Build (8)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1243
if (results[i].OverallResult == BuildResultCode.
Failure
)
BackEnd\Components\Scheduler\Scheduler.cs (2)
427
if (result.OverallResult != BuildResultCode.
Failure
)
1857
if (response.BuildResult.OverallResult != BuildResultCode.
Failure
)
BackEnd\Shared\BuildResult.cs (2)
380
return BuildResultCode.
Failure
;
388
return BuildResultCode.
Failure
;
Graph\GraphBuildResult.cs (3)
61
return BuildResultCode.
Failure
;
66
if (result.Value.OverallResult == BuildResultCode.
Failure
)
68
return BuildResultCode.
Failure
;
Microsoft.Build.Engine.UnitTests (48)
BackEnd\BuildManager_Tests.cs (27)
959
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
1045
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
1079
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
1472
Assert.Equal(BuildResultCode.
Failure
, submission2.BuildResult.OverallResult);
1564
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
1599
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
1639
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
1677
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
1718
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
1752
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult); // "Build should have failed."
2415
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2476
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2534
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2742
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2839
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2939
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
3025
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
3417
Assert.Equal(BuildResultCode.
Failure
, result1.OverallResult);
3447
Assert.Equal(BuildResultCode.
Failure
, result1.OverallResult);
3478
Assert.Equal(BuildResultCode.
Failure
, buildResult.OverallResult);
3907
Assert.Equal(BuildResultCode.
Failure
, results.OverallResult);
4294
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
4298
result.ResultsByNode[node1].OverallResult.ShouldBe(BuildResultCode.
Failure
);
4302
result.ResultsByNode[node2].OverallResult.ShouldBe(BuildResultCode.
Failure
);
4338
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
4427
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
4439
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
BackEnd\BuildRequestEngine_Tests.cs (2)
138
if (configResult.OverallResult == BuildResultCode.
Failure
)
357
Assert.Equal(BuildResultCode.
Failure
, _requestComplete_Result.OverallResult);
BackEnd\BuildResult_Tests.cs (2)
105
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
111
Assert.Equal(BuildResultCode.
Failure
, result2.OverallResult);
BackEnd\RequestBuilder_Tests.cs (3)
132
Assert.Equal(BuildResultCode.
Failure
, _buildRequestCompleted_Entry.Result.OverallResult);
213
Assert.Equal(BuildResultCode.
Failure
, _buildRequestCompleted_Entry.Result.OverallResult);
235
Assert.Equal(BuildResultCode.
Failure
, _buildRequestCompleted_Entry.Result.OverallResult);
BackEnd\TargetBuilder_Tests.cs (1)
274
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
BackEnd\TargetEntry_Tests.cs (1)
884
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
BackEnd\TaskBuilder_Tests.cs (1)
198
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
Construction\SolutionProjectGenerator_Tests.cs (2)
2132
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
2220
Assert.Equal(BuildResultCode.
Failure
, result.OverallResult);
Evaluation\Expander_Tests.cs (2)
1049
BuildResultCode.
Failure
);
1065
BuildResultCode.
Failure
);
Graph\IsolateProjects_Tests.cs (3)
206
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
419
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
436
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
Graph\ProjectGraph_Tests.cs (1)
1615
project1BuildResult.OverallResult.ShouldBe(BuildResultCode.
Failure
);
Graph\ResultCacheBasedBuilds_Tests.cs (3)
70
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
396
results["1"].Result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
567
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
178
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
188
result.OverallResult.ShouldBe(BuildResultCode.
Failure
);
1516
buildResult.OverallResult.ShouldBe(BuildResultCode.
Failure
);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
266
if (result.OverallResult == MSB.Execution.BuildResultCode.
Failure
)