1 write to ErrorCount
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
300
++
ErrorCount
;
88 references to ErrorCount
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2078
logger.
ErrorCount
.ShouldBe(1);
Microsoft.Build.Engine.UnitTests (70)
BackEnd\BuildManager_Tests.cs (5)
1195
Assert.Equal(0, _logger.
ErrorCount
);
2582
Assert.Equal(1, _logger.
ErrorCount
);
3414
Assert.Equal(2, _logger.
ErrorCount
);
3444
Assert.Equal(1, _logger.
ErrorCount
);
3475
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)
267
_logger.
ErrorCount
.ShouldBe(0);
BackEnd\TargetBuilder_Tests.cs (1)
1376
_mockLogger.
ErrorCount
.ShouldBe(1);
BackEnd\TaskBuilder_Tests.cs (1)
192
logger.
ErrorCount
.ShouldBe(0);
BackEnd\TaskRegistry_Tests.cs (1)
682
logger.
ErrorCount
.ShouldBe(1);
Evaluation\Evaluator_Tests.cs (1)
2353
Assert.Equal(1, mockLogger.
ErrorCount
);
Evaluation\SdkResultEvaluation_Tests.cs (6)
137
_logger.
ErrorCount
.ShouldBe(0);
267
_logger.
ErrorCount
.ShouldBe(0);
367
if (_logger.
ErrorCount
> 0 || _logger.WarningCount > 0)
372
_logger.
ErrorCount
.ShouldBe(0);
441
_logger.
ErrorCount
.ShouldBe(0);
495
_logger.
ErrorCount
.ShouldBe(0);
Graph\IsolateProjects_Tests.cs (9)
207
logger.
ErrorCount
.ShouldBe(1);
232
logger.
ErrorCount
.ShouldBe(0);
254
logger.
ErrorCount
.ShouldBe(0);
350
rootLogger.
ErrorCount
.ShouldBe(0);
351
declaredReferenceLogger.
ErrorCount
.ShouldBe(0);
381
logger.
ErrorCount
.ShouldBe(0);
420
logger.
ErrorCount
.ShouldBe(1);
437
logger.
ErrorCount
.ShouldBe(1);
610
buildManagerSession.Logger.
ErrorCount
.ShouldBe(0);
Graph\ProjectGraph_Tests.cs (1)
1617
project1MockLogger.
ErrorCount
.ShouldBe(1);
Graph\ResultCacheBasedBuilds_Tests.cs (6)
73
_logger.
ErrorCount
.ShouldBe(1);
95
_logger.
ErrorCount
.ShouldBe(0);
116
_logger.
ErrorCount
.ShouldBe(1);
173
_logger.
ErrorCount
.ShouldBe(0);
396
results["1"].Logger.
ErrorCount
.ShouldBe(1);
572
_logger.
ErrorCount
.ShouldBe(1);
WarningsAsMessagesAndErrors_Tests.cs (4)
307
logger.
ErrorCount
.ShouldBe(1);
359
logger.
ErrorCount
.ShouldBe(1);
395
logger.
ErrorCount
.ShouldBe(errorCountShouldBe);
555
logger.
ErrorCount
.ShouldBe(0);
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)
43
logger.
ErrorCount
.ShouldBe(1);
Microsoft.Build.UnitTests.Shared (3)
MockLogger.cs (1)
549
public void AssertNoErrors() => Assert.Equal(0,
ErrorCount
);
ObjectModelHelpers.cs (2)
1517
mockLogger.
ErrorCount
.ShouldBe(1);
1534
mockLogger.
ErrorCount
.ShouldBe(0);
Microsoft.Build.Utilities.UnitTests (5)
MuxLogger_Tests.cs (5)
170
mockLogger.
ErrorCount
.ShouldBe(1);
230
mockLogger1.
ErrorCount
.ShouldBe(1);
237
mockLogger2.
ErrorCount
.ShouldBe(0);
280
Assert.Equal(1, mockLogger1.
ErrorCount
);
285
mockLogger2.
ErrorCount
.ShouldBe(1);