21 references to BuildMessageEvents
Microsoft.Arcade.Test.Common (1)
MockBuildEngine.cs (1)
43BuildMessageEvents.Add(e);
Microsoft.DotNet.Build.Tasks.Feed.Tests (12)
PublishToSymbolServerTest.cs (12)
122Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("No assets to publish")); 141Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("No target symbol servers")); 164Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Publishing Symbols to Symbol server")); 165var message = buildEngine.BuildMessageEvents.Single(x => x.Message.StartsWith("Publishing Symbols to Symbol server")); 169Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.Contains("Creating symbol request")); 170Assert.Equal(2, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains("Adding directory")).Count()); 173Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains($"Extracting symbol package")).Count()); 174Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains($"Adding package")).Count()); 177Assert.Contains(buildEngine.BuildMessageEvents , x => x.Message.Contains("Skipping lib/net8.0/aztoken.dll")); 178Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Finished publishing symbols to temporary azdo org")); 179Assert.Single(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Would register request")); 180Microsoft.Build.Framework.BuildMessageEventArgs registerLog = buildEngine.BuildMessageEvents.Where(x => x.Message.StartsWith("Would register request")).Single();
Microsoft.DotNet.Helix.Sdk.Tests (8)
FindDotNetCliPackageTests.cs (8)
65buildEngineMock.BuildMessageEvents.Should().Contain(x => x.Message.Contains("is valid.")); 113buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+")); 115buildEngineMock.BuildMessageEvents.Should().Contain(x => x.Message.Contains("is valid.")); 164buildEngineMock.BuildMessageEvents.Should().Contain(x => x.Message.Contains("Response status code does not indicate success: 403 (Forbidden).")); 166buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+")); 168buildEngineMock.BuildMessageEvents.Should().NotContain(x => x.Message.Contains("is valid.")); 218buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.Message, @"\?sv=[^ ]+")); 220buildEngineMock.BuildMessageEvents.Should().NotContain(x => x.Message.Contains("is valid."));