25 references to BuildMessageEvents
Microsoft.Build.Engine.UnitTests (22)
BackEnd\BuildManager_Tests.cs (1)
1004var deferredMessages = logger.BuildMessageEvents.Where(e => e.Message.StartsWith("deferred")).ToArray();
BackEnd\LoggingService_Tests.cs (2)
820BuildMessageEventArgs actualBuildEvent = logger.BuildMessageEvents.ShouldHaveSingleItem(); 927BuildMessageEventArgs 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)
1123messages = ml.BuildMessageEvents.Select(e => e.Message).ToList();
Evaluation\Evaluator_Tests.cs (1)
5070logger.BuildMessageEvents
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
488ProjectImportedEventArgs[] events = logger.BuildMessageEvents.OfType<ProjectImportedEventArgs>().ToArray();
WarningsAsMessagesAndErrors_Tests.cs (1)
247BuildMessageEventArgs actualEvent = logger.BuildMessageEvents.FirstOrDefault(i => i.Message.Equals(ExpectedEventMessage));
Microsoft.Build.Tasks.UnitTests (2)
ResourceManagement_Tests.cs (1)
149return logger.BuildMessageEvents;
RoslynCodeTaskFactory_Tests.cs (1)
209.BuildMessageEvents
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
382BuildMessageEvents.Add(buildMessageEventArgs);