63 references to AllBuildEvents
Microsoft.Build.BuildCheck.UnitTests (1)
BuildCheckManagerProviderTests.cs (1)
47
_logger.
AllBuildEvents
.Where(be => be.GetType() == typeof(BuildMessageEventArgs)).Select(be => be.Message).ToArray()
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
735
mockLogFromPlaybackWithoutTL.
AllBuildEvents
.Count.ShouldBe(mockLogFromPlaybackWithTL.
AllBuildEvents
.Count);
Microsoft.Build.Engine.OM.UnitTests (8)
Definition\Project_Tests.cs (8)
3909
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
3950
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
3994
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
4041
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
4081
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
4124
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
4167
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
4213
ProjectImportedEventArgs eventArgs = logger.
AllBuildEvents
.SingleOrDefault(i => i is ProjectImportedEventArgs) as ProjectImportedEventArgs;
Microsoft.Build.Engine.UnitTests (50)
BackEnd\BuildManager_Logging_Tests.cs (1)
126
var allEvents = _logger.
AllBuildEvents
;
BackEnd\BuildManager_Tests.cs (5)
209
_logger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>()
212
_logger.
AllBuildEvents
.OfType<ProjectEvaluationFinishedEventArgs>()
216
_logger.
AllBuildEvents
.OfType<ProjectEvaluationStartedEventArgs>()
219
_logger.
AllBuildEvents
.OfType<ProjectEvaluationFinishedEventArgs>()
3967
Assert.True(_logger.
AllBuildEvents
.OfType<ProjectEvaluationStartedEventArgs>().GroupBy(args => args.BuildEventContext.EvaluationId).All(g => g.Count() == 1));
Evaluation\EvaluationLogging_Tests.cs (5)
90
firstEvaluationLogger.
AllBuildEvents
.ShouldNotBeEmpty();
100
reevaluationLogger.
AllBuildEvents
.ShouldNotBeEmpty();
116
foreach (var buildEvent in firstEvaluationLogger.
AllBuildEvents
)
129
var allBuildEvents = firstEvaluationLogger.
AllBuildEvents
.Where(be => be is ProjectEvaluationStartedEventArgs || be is ProjectEvaluationFinishedEventArgs).ToList();
164
foreach (var e in logger.
AllBuildEvents
.OfType<ProjectEvaluationFinishedEventArgs>())
Evaluation\Evaluator_Tests.cs (30)
4714
.
AllBuildEvents
4719
.
AllBuildEvents
4726
.
AllBuildEvents
4732
.
AllBuildEvents
4746
.
AllBuildEvents
4751
.
AllBuildEvents
4758
.
AllBuildEvents
4763
.
AllBuildEvents
4777
.
AllBuildEvents
4782
.
AllBuildEvents
4789
.
AllBuildEvents
4794
.
AllBuildEvents
4809
.
AllBuildEvents
4814
.
AllBuildEvents
4821
.
AllBuildEvents
4826
.
AllBuildEvents
4861
.
AllBuildEvents
4866
.
AllBuildEvents
4871
.
AllBuildEvents
4876
.
AllBuildEvents
4881
.
AllBuildEvents
4895
.
AllBuildEvents
4900
.
AllBuildEvents
4907
.
AllBuildEvents
4912
.
AllBuildEvents
4926
.
AllBuildEvents
4931
.
AllBuildEvents
4936
.
AllBuildEvents
4941
.
AllBuildEvents
4946
.
AllBuildEvents
Evaluation\Expander_Tests.cs (2)
5181
_ = logger.
AllBuildEvents
.Select(be => be.ShouldBeOfType<BuildCheckAcquisitionEventArgs>());
5182
logger.
AllBuildEvents
.Count.ShouldBe(1);
Graph\IsolateProjects_Tests.cs (5)
238
logger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>().Count().ShouldBe(3);
260
logger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>().Count().ShouldBe(3);
355
rootLogger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2);
356
declaredReferenceLogger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2);
387
logger.
AllBuildEvents
.OfType<ProjectStartedEventArgs>().Count().ShouldBe(2);
Graph\ResultCacheBasedBuilds_Tests.cs (2)
73
_logger.
AllBuildEvents
.Count.ShouldBe(6);
569
_logger.
AllBuildEvents
.Count.ShouldBe(6);
Microsoft.Build.Tasks.UnitTests (1)
RoslynCodeTaskFactory_Tests.cs (1)
758
var logLines = logger.
AllBuildEvents
.Select(a => a.Message);
Microsoft.Build.UnitTests.Shared (1)
MockLogger.cs (1)
270
AllBuildEvents
.Add(eventArgs);