26 references to Warnings
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
754
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)
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)
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 (6)
MSBuildInternalMessage_Tests.cs (5)
55
logger.
Warnings
[0].RawMessage.ShouldBe(expectedBuildMessage);
101
logger.
Warnings
[0].RawMessage.ShouldBe(expectedBuildMessage);
170
logger.
Warnings
[0].RawMessage.ShouldBe(expectedBuildMessage);
228
logger.
Warnings
[0].RawMessage.ShouldBe(expectedBuildMessage);
288
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)
1528
mockLogger.
Warnings
[0].Code.ShouldBe("MSB5029");
1529
mockLogger.
Warnings
[0].Message.ShouldContain(testProjectFile);