22 references to Warnings
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
734
mockLogFromPlaybackWithoutTL.
Warnings
.Count.ShouldBe(mockLogFromPlaybackWithTL.
Warnings
.Count);
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2129
collectionLogger.
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)
420
Assert.Equal("high", log.
Warnings
[0].Code);
421
Assert.Null(log.
Warnings
[1].Code);
BackEnd\LoggingService_Tests.cs (2)
767
var actualEvent = logger.
Warnings
.ShouldHaveSingleItem();
852
logger.
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)
319
Assert.Single(logger.
Warnings
);
320
BuildWarningEventArgs warning = logger.
Warnings
[0];
2045
Assert.Single(logger.
Warnings
);
2046
BuildWarningEventArgs warning = logger.
Warnings
[0];
WarningsAsMessagesAndErrors_Tests.cs (1)
235
BuildWarningEventArgs actualEvent = logger.
Warnings
.FirstOrDefault();
Microsoft.Build.Tasks.UnitTests (2)
MSBuildInternalMessage_Tests.cs (1)
54
logger.
Warnings
[0].RawMessage.ShouldBe(expectedBuildMessage);
ProjectExtensionsImportTestBase.cs (1)
258
logger.
Warnings
.Select(i => i.Code).FirstOrDefault().ShouldBe("MSB3539");
Microsoft.Build.UnitTests.Shared (3)
MockLogger.cs (1)
291
Warnings
.Add(w);
ObjectModelHelpers.cs (2)
1525
mockLogger.
Warnings
[0].Code.ShouldBe("MSB5029");
1526
mockLogger.
Warnings
[0].Message.ShouldContain(testProjectFile);