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