1 write to ErrorCount
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
300
++
ErrorCount
;
87 references to ErrorCount
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2078
logger.
ErrorCount
.ShouldBe(1);
Microsoft.Build.Engine.UnitTests (69)
BackEnd\BuildManager_Tests.cs (5)
1196
Assert.Equal(0, _logger.
ErrorCount
);
2583
Assert.Equal(1, _logger.
ErrorCount
);
3415
Assert.Equal(2, _logger.
ErrorCount
);
3445
Assert.Equal(1, _logger.
ErrorCount
);
3476
Assert.Equal(1, _logger.
ErrorCount
);
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (1)
34
logger.
ErrorCount
.ShouldBe(1);
BackEnd\MSBuild_Tests.cs (7)
234
Assert.Equal(1, logger.
ErrorCount
);
270
Assert.Equal(0, logger.
ErrorCount
);
308
Assert.Equal(0, logger.
ErrorCount
);
357
Assert.Equal(1, logger.
ErrorCount
);
401
Assert.Equal(1, logger.
ErrorCount
);
844
Assert.Equal(0, logger.
ErrorCount
);
883
Assert.Equal(0, logger.
ErrorCount
);
BackEnd\OnError_Tests.cs (22)
50
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
178
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
209
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
242
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
275
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
307
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'BuildStep1' failed."
334
Assert.Equal(2, l.
ErrorCount
); // "Expected at least one error because 'Build' failed and one error because 'CleanUp' didn't exist."
362
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
390
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
422
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
463
Assert.Equal(4, l.
ErrorCount
); // "Four build errors expect: One from CoreBuild and on each from the error handlers."
490
Assert.Equal(2, l.
ErrorCount
); // "Expected one error because 'Build' failed and one because 'CleanUp' doesn't exist."
520
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
545
Assert.Equal(2, l.
ErrorCount
); // "Expected one error because 'Build' failed and one error because of the circular dependency."
590
logger.
ErrorCount
.ShouldBe(1);
595
logger.
ErrorCount
.ShouldBe(0);
616
Assert.Equal(0, l.
ErrorCount
); // "Expected no error because 'Build' succeeded."
638
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
661
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
684
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
707
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
730
Assert.Equal(1, l.
ErrorCount
); // "Expected one error because 'Build' failed."
BackEnd\SdkResolverLoader_Tests.cs (4)
51
_logger.
ErrorCount
.ShouldBe(0);
149
_logger.
ErrorCount
.ShouldBe(0);
179
_logger.
ErrorCount
.ShouldBe(0);
212
_logger.
ErrorCount
.ShouldBe(0);
BackEnd\SdkResolverService_Tests.cs (1)
217
_logger.
ErrorCount
.ShouldBe(0);
BackEnd\TargetBuilder_Tests.cs (1)
1377
_mockLogger.
ErrorCount
.ShouldBe(1);
BackEnd\TaskBuilder_Tests.cs (1)
193
logger.
ErrorCount
.ShouldBe(0);
BackEnd\TaskRegistry_Tests.cs (1)
682
logger.
ErrorCount
.ShouldBe(1);
Evaluation\Evaluator_Tests.cs (1)
2318
Assert.Equal(1, mockLogger.
ErrorCount
);
Evaluation\SdkResultEvaluation_Tests.cs (6)
136
_logger.
ErrorCount
.ShouldBe(0);
232
_logger.
ErrorCount
.ShouldBe(0);
332
if (_logger.
ErrorCount
> 0 || _logger.WarningCount > 0)
337
_logger.
ErrorCount
.ShouldBe(0);
406
_logger.
ErrorCount
.ShouldBe(0);
460
_logger.
ErrorCount
.ShouldBe(0);
Graph\IsolateProjects_Tests.cs (9)
208
logger.
ErrorCount
.ShouldBe(1);
233
logger.
ErrorCount
.ShouldBe(0);
255
logger.
ErrorCount
.ShouldBe(0);
351
rootLogger.
ErrorCount
.ShouldBe(0);
352
declaredReferenceLogger.
ErrorCount
.ShouldBe(0);
382
logger.
ErrorCount
.ShouldBe(0);
421
logger.
ErrorCount
.ShouldBe(1);
438
logger.
ErrorCount
.ShouldBe(1);
611
buildManagerSession.Logger.
ErrorCount
.ShouldBe(0);
Graph\ProjectGraph_Tests.cs (1)
1617
project1MockLogger.
ErrorCount
.ShouldBe(1);
Graph\ResultCacheBasedBuilds_Tests.cs (6)
74
_logger.
ErrorCount
.ShouldBe(1);
96
_logger.
ErrorCount
.ShouldBe(0);
117
_logger.
ErrorCount
.ShouldBe(1);
174
_logger.
ErrorCount
.ShouldBe(0);
397
results["1"].Logger.
ErrorCount
.ShouldBe(1);
573
_logger.
ErrorCount
.ShouldBe(1);
WarningsAsMessagesAndErrors_Tests.cs (3)
307
logger.
ErrorCount
.ShouldBe(1);
359
logger.
ErrorCount
.ShouldBe(1);
395
logger.
ErrorCount
.ShouldBe(errorCountShouldBe);
Microsoft.Build.Tasks.UnitTests (9)
CallTarget_Tests.cs (1)
125
logger.
ErrorCount
.ShouldBe(1);
MSBuild_Tests.cs (7)
215
Assert.Equal(1, logger.
ErrorCount
);
249
Assert.Equal(0, logger.
ErrorCount
);
285
Assert.Equal(0, logger.
ErrorCount
);
333
Assert.Equal(1, logger.
ErrorCount
);
376
Assert.Equal(1, logger.
ErrorCount
);
1421
logger.
ErrorCount
.ShouldBe(0);
1445
logger.
ErrorCount
.ShouldBe(1);
SGen_Tests.cs (1)
44
logger.
ErrorCount
.ShouldBe(1);
Microsoft.Build.UnitTests.Shared (3)
MockLogger.cs (1)
549
public void AssertNoErrors() => Assert.Equal(0,
ErrorCount
);
ObjectModelHelpers.cs (2)
1516
mockLogger.
ErrorCount
.ShouldBe(1);
1533
mockLogger.
ErrorCount
.ShouldBe(0);
Microsoft.Build.Utilities.UnitTests (5)
MuxLogger_Tests.cs (5)
172
mockLogger.
ErrorCount
.ShouldBe(1);
232
mockLogger1.
ErrorCount
.ShouldBe(1);
239
mockLogger2.
ErrorCount
.ShouldBe(0);
282
Assert.Equal(1, mockLogger1.
ErrorCount
);
287
mockLogger2.
ErrorCount
.ShouldBe(1);