1 write to WarningCount
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
290++WarningCount;
55 references to WarningCount
Microsoft.Build.Engine.OM.UnitTests (3)
Definition\Project_Tests.cs (1)
2127mockLogger.WarningCount.ShouldBe(0); // "Log should not contain MSB4011 because the build logger will not receive evaluation messages."
Definition\ProjectItem_Tests.cs (2)
842collectionLogger.WarningCount.ShouldBe(1); 968collectionLogger.WarningCount.ShouldBe(1);
Microsoft.Build.Engine.UnitTests (40)
BackEnd\BuildManager_Tests.cs (4)
1197Assert.Equal(0, _logger.WarningCount); 3414Assert.Equal(0, _logger.WarningCount); 3444Assert.Equal(2, _logger.WarningCount); 3475Assert.Equal(0, _logger.WarningCount);
BackEnd\MSBuild_Tests.cs (7)
233Assert.Equal(0, logger.WarningCount); 269Assert.Equal(0, logger.WarningCount); 307Assert.Equal(0, logger.WarningCount); 356Assert.Equal(0, logger.WarningCount); 400Assert.Equal(0, logger.WarningCount); 843Assert.Equal(0, logger.WarningCount); 882Assert.Equal(0, logger.WarningCount);
BackEnd\SdkResolverLoader_Tests.cs (4)
52_logger.WarningCount.ShouldBe(0); 148_logger.WarningCount.ShouldBe(0); 178_logger.WarningCount.ShouldBe(0); 211_logger.WarningCount.ShouldBe(0);
BackEnd\SdkResolverService_Tests.cs (7)
103_logger.WarningCount.ShouldBe(1); 316_logger.WarningCount.ShouldBe(0); 322_logger.WarningCount.ShouldBe(1); 403_logger.WarningCount.ShouldBe(0); 439_logger.WarningCount.ShouldBe(0); 491_logger.WarningCount.ShouldBe(0); 536_logger.WarningCount.ShouldBe(1);
BackEnd\TaskBuilder_Tests.cs (1)
196logger.WarningCount.ShouldBe(1);
ChangeWaves_Tests.cs (1)
72log.WarningCount.ShouldBe(warningCodesLogShouldContain.Length);
Definition\ToolsVersion_Tests.cs (2)
204Assert.Equal(1, mockLogger.WarningCount); // "Expected 1 warning logged!" 226Assert.Equal(1, mockLogger.WarningCount); // "Expected a warning for invalid character in toolpath"
Evaluation\Evaluator_Tests.cs (2)
742Assert.Equal(2, logger.WarningCount); // "Expected two warnings" 788Assert.Equal(2, logger.WarningCount); // "Expected two warnings"
Evaluation\SdkResultEvaluation_Tests.cs (6)
137_logger.WarningCount.ShouldBe(0); 233_logger.WarningCount.ShouldBe(0); 332if (_logger.ErrorCount > 0 || _logger.WarningCount > 0) 338_logger.WarningCount.ShouldBe(0); 407_logger.WarningCount.ShouldBe(0); 461_logger.WarningCount.ShouldBe(0);
Graph\IsolateProjects_Tests.cs (1)
610buildManagerSession.Logger.WarningCount.ShouldBe(0);
WarningsAsMessagesAndErrors_Tests.cs (5)
306logger.WarningCount.ShouldBe(0); 358logger.WarningCount.ShouldBe(2); 394logger.WarningCount.ShouldBe(warningCountShouldBe); 440logger.WarningCount.ShouldBe(1); 466logger.WarningCount.ShouldBe(1);
Microsoft.Build.Tasks.UnitTests (7)
MSBuild_Tests.cs (7)
214Assert.Equal(0, logger.WarningCount); 248Assert.Equal(0, logger.WarningCount); 284Assert.Equal(0, logger.WarningCount); 332Assert.Equal(0, logger.WarningCount); 375Assert.Equal(0, logger.WarningCount); 1420logger.WarningCount.ShouldBe(0); 1444logger.WarningCount.ShouldBe(0);
Microsoft.Build.UnitTests.Shared (3)
MockLogger.cs (1)
554public void AssertNoWarnings() => Assert.Equal(0, WarningCount);
ObjectModelHelpers.cs (2)
1524mockLogger.WarningCount.ShouldBe(1); 1532mockLogger.WarningCount.ShouldBe(0);
Microsoft.Build.Utilities.UnitTests (2)
MuxLogger_Tests.cs (2)
233mockLogger1.WarningCount.ShouldBe(0); 240mockLogger2.WarningCount.ShouldBe(1);