22 references to Warnings
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
734mockLogFromPlaybackWithoutTL.Warnings.Count.ShouldBe(mockLogFromPlaybackWithTL.Warnings.Count);
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2129collectionLogger.Warnings[0].Code.ShouldBe("MSB4011"); // "Log should contain MSB4011 because the project collection logger should have been used for evaluation."
Microsoft.Build.Engine.UnitTests (14)
BackEnd\BatchingEngine_Tests.cs (2)
420Assert.Equal("high", log.Warnings[0].Code); 421Assert.Null(log.Warnings[1].Code);
BackEnd\LoggingService_Tests.cs (2)
767var actualEvent = logger.Warnings.ShouldHaveSingleItem(); 852logger.Warnings.ShouldHaveSingleItem();
BackEnd\SdkResolverService_Tests.cs (5)
79_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING4", "WARNING2" }); 104_logger.Warnings.First().Code.ShouldStartWith("MSB4241"); 216_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING2" }); 323_logger.Warnings.First().Code.ShouldBe("MSB4240"); 537_logger.Warnings.First().Code.ShouldStartWith("MSB4241");
Construction\SolutionProjectGenerator_Tests.cs (4)
319Assert.Single(logger.Warnings); 320BuildWarningEventArgs warning = logger.Warnings[0]; 2045Assert.Single(logger.Warnings); 2046BuildWarningEventArgs warning = logger.Warnings[0];
WarningsAsMessagesAndErrors_Tests.cs (1)
235BuildWarningEventArgs actualEvent = logger.Warnings.FirstOrDefault();
Microsoft.Build.Tasks.UnitTests (2)
MSBuildInternalMessage_Tests.cs (1)
54logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage);
ProjectExtensionsImportTestBase.cs (1)
258logger.Warnings.Select(i => i.Code).FirstOrDefault().ShouldBe("MSB3539");
Microsoft.Build.UnitTests.Shared (3)
MockLogger.cs (1)
291Warnings.Add(w);
ObjectModelHelpers.cs (2)
1525mockLogger.Warnings[0].Code.ShouldBe("MSB5029"); 1526mockLogger.Warnings[0].Message.ShouldContain(testProjectFile);