2 writes to Errors
Microsoft.Build.Tasks.UnitTests (1)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
3063e.Errors = 0;
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
90++Errors;
48 references to Errors
Microsoft.Build.Tasks.UnitTests (48)
Copy_Tests.cs (7)
874Assert.Equal(2, ((MockEngine)t.BuildEngine).Errors); 1244Assert.Equal(1, engine.Errors); 1291Assert.Equal(1, engine.Errors); 1338Assert.Equal(1, engine.Errors); 1389Assert.Equal(2, engine.Errors); // retries failed and the actual failure 1511Assert.Equal(1, engine.Errors); 1554Assert.Equal(1, engine.Errors);
CreateItem_Tests.cs (1)
310engine.Errors.ShouldBe(1);
Exec_Tests.cs (14)
179Assert.Equal(0, ((MockEngine)exec.BuildEngine).Errors); 196mockEngine.Errors.ShouldBe(0); 211Assert.Equal(0, ((MockEngine)exec.BuildEngine).Errors); 655Assert.Equal(3, e.Errors); 677Assert.Equal(0, e.Errors); 686Assert.Equal(2, e.Errors); 708Assert.Equal(0, e.Errors); 718Assert.Equal(0, e.Errors); 735Assert.Equal(0, ((MockEngine)exec.BuildEngine).Errors); 752Assert.Equal(3, ((MockEngine)exec.BuildEngine).Errors); 768Assert.Equal(0, ((MockEngine)exec.BuildEngine).Errors); 785Assert.Equal(0, ((MockEngine)exec.BuildEngine).Errors); 802Assert.Equal(2, ((MockEngine)exec.BuildEngine).Errors); 815Assert.Equal(2, ((MockEngine)exec.BuildEngine).Errors);
GenerateBindingRedirects_Tests.cs (3)
176redirectResults.Engine.Errors.ShouldBe(0); // "Unexpected errors. Engine log: " + redirectResults.Engine.Log 202redirectResults.Engine.Errors.ShouldBe(0); 232redirectResults.Engine.Errors.ShouldBe(0);
GetInstalledSDKLocations_Tests.cs (3)
206Assert.Equal(1, engine.Errors); 225Assert.Equal(1, engine.Errors); 244Assert.Equal(1, engine.Errors);
ResolveNonMSBuildProjectOutput_Tests.cs (2)
347Assert.Equal(0, engine.Errors); 354Assert.Equal(1, engine.Errors);
ResolveSDKReference_Tests.cs (15)
384Assert.Equal(0, engine.Errors); 411Assert.Equal(0, engine.Errors); 615Assert.Equal(0, engine.Errors); // "Expected no errors" 670Assert.Equal(1, engine.Errors); 728Assert.Equal(0, engine.Errors); // "Expected no errors" 783Assert.Equal(0, engine.Errors); // "Expected no errors" 838Assert.Equal(0, engine.Errors); // "Expected no errors" 893Assert.Equal(1, engine.Errors); 951Assert.Equal(0, engine.Errors); // "Expected no errors" 1005Assert.Equal(0, engine.Errors); // "Expected no errors" 1060Assert.Equal(0, engine.Errors); // "Expected no errors" 2868Assert.Equal(1, engine.Errors); 2966Assert.Equal(1, engine.Errors); 3078Assert.Equal(0, engine.Errors); 3177Assert.Equal(1, engine.Errors);
ResourceHandling\GenerateResource_Tests.cs (1)
3722Assert.Equal(1, ((MockEngine)t.BuildEngine).Errors);
RoslynCodeTaskFactory_Tests.cs (2)
785buildEngine.Errors.ShouldBe(1); 809buildEngine.Errors.ShouldBe(0, buildEngine.Log);