25 references to BuildMessageEvents
Microsoft.Build.Engine.UnitTests (22)
BackEnd\BuildManager_Tests.cs (1)
1004
var deferredMessages = logger.
BuildMessageEvents
.Where(e => e.Message.StartsWith("deferred")).ToArray();
BackEnd\LoggingService_Tests.cs (2)
820
BuildMessageEventArgs actualBuildEvent = logger.
BuildMessageEvents
.ShouldHaveSingleItem();
927
BuildMessageEventArgs actualBuildEvent = logger.
BuildMessageEvents
.ShouldHaveSingleItem();
BackEnd\SdkResolverService_Tests.cs (15)
64
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
65
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolver2 running");
66
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
67
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
133
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
134
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldNotContain("MockSdkResolver1 running");
135
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldNotContain("MockSdkResolver2 running");
197
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
198
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
214
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern1 running");
215
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldNotContain("MockSdkResolver1 running");
228
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverAttempt", nameof(MockResolverReturnsNull), sdk.ToString(), "null",
231
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SucceededToResolveSDK", sdk.ToString(), nameof(MockSdkResolver1), result.Path, result.Version));
264
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
265
_logger.
BuildMessageEvents
.Select(i => i.Message).ShouldContain("MockSdkResolver2 running");
BackEnd\TaskExecutionHost_Tests.cs (1)
1123
messages = ml.
BuildMessageEvents
.Select(e => e.Message).ToList();
Evaluation\Evaluator_Tests.cs (1)
5070
logger.
BuildMessageEvents
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
488
ProjectImportedEventArgs[] events = logger.
BuildMessageEvents
.OfType<ProjectImportedEventArgs>().ToArray();
WarningsAsMessagesAndErrors_Tests.cs (1)
247
BuildMessageEventArgs actualEvent = logger.
BuildMessageEvents
.FirstOrDefault(i => i.Message.Equals(ExpectedEventMessage));
Microsoft.Build.Tasks.UnitTests (2)
ResourceManagement_Tests.cs (1)
149
return logger.
BuildMessageEvents
;
RoslynCodeTaskFactory_Tests.cs (1)
209
.
BuildMessageEvents
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
382
BuildMessageEvents
.Add(buildMessageEventArgs);