26 references to Warnings
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
754mockLogFromPlaybackWithoutTL.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)
77_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING4", "WARNING2" }); 103_logger.Warnings.First().Code.ShouldStartWith("MSB4241"); 268_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING2" }); 378_logger.Warnings.First().Code.ShouldBe("MSB4240"); 596_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 (6)
MSBuildInternalMessage_Tests.cs (5)
55logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage); 101logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage); 170logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage); 228logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage); 288logger.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)
1528mockLogger.Warnings[0].Code.ShouldBe("MSB5029"); 1529mockLogger.Warnings[0].Message.ShouldContain(testProjectFile);