42 references to ProcessedBuildEvent
Microsoft.Build.Engine.UnitTests (42)
BackEnd\LoggingService_Tests.cs (1)
706BuildMessageEventArgs messageEventFromPacket = loggingService.ProcessedBuildEvent as BuildMessageEventArgs;
BackEnd\LoggingServicesLogMethod_Tests.cs (41)
85Assert.Null(loggingService.ProcessedBuildEvent); // "Expected ProcessedBuildEvent to be null" 194Assert.Null(service.ProcessedBuildEvent); 717Assert.Null(service.ProcessedBuildEvent); 776Assert.Null(service.ProcessedBuildEvent); 1020service.ProcessedBuildEvent.Timestamp); 1022Assert.IsType<BuildStartedEventArgs>(service.ProcessedBuildEvent); 1023Assert.Equal(buildEvent, (BuildStartedEventArgs)service.ProcessedBuildEvent, 1036BuildFinishedEventArgs buildEvent = new BuildFinishedEventArgs(ResourceUtilities.GetResourceString("BuildFinishedSuccess"), null /* no help keyword */, true, service.ProcessedBuildEvent.Timestamp); 1037Assert.True(((BuildFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent)); 1041buildEvent = new BuildFinishedEventArgs(ResourceUtilities.GetResourceString("BuildFinishedFailure"), null /* no help keyword */, false, service.ProcessedBuildEvent.Timestamp); 1042Assert.True(((BuildFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent)); 1047buildEvent = new BuildFinishedEventArgs(string.Empty, null /* no help keyword */, true, service.ProcessedBuildEvent.Timestamp); 1048Assert.True(((BuildFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent)); 1062service.ProcessedBuildEvent.Timestamp); 1064Assert.IsType<BuildCanceledEventArgs>(service.ProcessedBuildEvent); 1065Assert.Equal(buildEvent, (BuildCanceledEventArgs)service.ProcessedBuildEvent, 1297TelemetryEventArgs actualEventArgs = (TelemetryEventArgs)service.ProcessedBuildEvent; 1460Assert.Null(service.ProcessedBuildEvent); 1480Assert.Null(service.ProcessedBuildEvent); 1503Assert.Null(service.ProcessedBuildEvent); 1532Assert.Null(service.ProcessedBuildEvent); 1559Assert.Null(service.ProcessedBuildEvent); 1580service.ProcessedBuildEvent.Timestamp, 1583Assert.True(((TargetFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(targetEvent)); 1604service.ProcessedBuildEvent.Timestamp); 1606Assert.True(((TargetStartedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent)); 1627service.ProcessedBuildEvent.Timestamp); 1629Assert.True(((TaskFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(taskEvent)); 1648service.ProcessedBuildEvent.Timestamp, 1651Assert.True(((TaskStartedEventArgs)service.ProcessedBuildEvent).IsEquivalent(taskEvent)); 1669service.ProcessedBuildEvent.Timestamp); 1671Assert.True(((ProjectFinishedEventArgs)service.ProcessedBuildEvent).IsEquivalent(projectEvent)); 1694service.ProcessedBuildEvent.Timestamp); 1696Assert.True(((ProjectStartedEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildEvent)); 1712service.ProcessedBuildEvent.Timestamp); 1715Assert.True(((BuildMessageEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildMessageEvent)); 1740service.ProcessedBuildEvent.Timestamp); 1742Assert.True(buildEvent.IsEquivalent((BuildWarningEventArgs)service.ProcessedBuildEvent)); 1767service.ProcessedBuildEvent.Timestamp); 1769Assert.True(buildEvent.IsEquivalent((BuildErrorEventArgs)service.ProcessedBuildEvent)); 1780Assert.True(loggingService.ProcessedBuildEvent.IsEquivalent(expectedBuildEvent)); // "Expected ProcessedBuildEvent to equal expected build event"