196 references to FullLog
Microsoft.Build.Engine.UnitTests (168)
BackEnd\BuildManager_Tests.cs (5)
1996
Assert.Contains(skippedMessage, _logger.
FullLog
);
3951
Assert.Contains("The target \"Foo\" does not exist in the project", _logger.
FullLog
,
4414
logger.
FullLog
.ShouldContain("Static graph construction started.");
4415
logger.
FullLog
.ShouldContain("Static graph loaded in");
4416
logger.
FullLog
.ShouldContain("3 nodes, 2 edges");
BackEnd\MSBuild_Tests.cs (21)
212
Assert.Contains(error, logger.
FullLog
);
236
Assert.Contains(error, logger.
FullLog
);
272
Assert.Contains(message, logger.
FullLog
); // for the missing project
273
Assert.DoesNotContain(error, logger.
FullLog
);
310
Assert.Contains(message, logger.
FullLog
); // for the missing project
311
Assert.DoesNotContain(error, logger.
FullLog
);
359
Assert.Contains(message, logger.
FullLog
); // for the missing project
360
Assert.Contains(error2, logger.
FullLog
);
361
Assert.DoesNotContain(error, logger.
FullLog
);
403
Assert.Contains(error, logger.
FullLog
);
684
Console.WriteLine(logger.
FullLog
);
751
Console.WriteLine(logger.
FullLog
);
798
_testOutput.WriteLine(logger.
FullLog
);
830
_testOutput.WriteLine(logger.
FullLog
);
877
_testOutput.WriteLine(logger.
FullLog
);
1916
_testOutput.WriteLine(logger.
FullLog
);
1937
_testOutput.WriteLine(logger.
FullLog
);
1965
_testOutput.WriteLine(logger.
FullLog
);
1994
_testOutput.WriteLine(logger.
FullLog
);
2057
_testOutput.WriteLine(logger.
FullLog
);
2134
_testOutput.WriteLine(logger.
FullLog
);
BackEnd\OnError_Tests.cs (46)
51
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
210
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
211
Assert.True(l.
FullLog
.Contains("CleanUp2-was-called", StringComparison.Ordinal)); // "The CleanUp2 target should have been called."
243
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
244
Assert.True(l.
FullLog
.Contains("CleanUp2-was-called", StringComparison.Ordinal)); // "The CleanUp2 target should have been called."
276
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
277
Assert.True(l.
FullLog
.Contains("CleanUp2-was-called", StringComparison.Ordinal)); // "The CleanUp2 target should have been called."
308
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
309
Assert.True(l.
FullLog
.Contains("Error-in-build-step-1", StringComparison.Ordinal)); // "The BuildStep1 target should have been called."
335
Assert.False(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should not have been called."
363
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
391
Assert.False(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should not have been called."
423
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
464
Assert.True(l.
FullLog
.Contains("CleanUp1-was-called", StringComparison.Ordinal)); // "The CleanUp1 target should have been called."
465
Assert.True(l.
FullLog
.Contains("CleanUp2-was-called", StringComparison.Ordinal)); // "The CleanUp2 target should have been called."
466
Assert.True(l.
FullLog
.Contains("CleanUp3-was-called", StringComparison.Ordinal)); // "The CleanUp3 target should have been called."
521
Assert.True(l.
FullLog
.Contains("CleanUp-was-called", StringComparison.Ordinal)); // "The CleanUp target should have been called."
617
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
618
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
619
Assert.True(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should have been called."
620
Assert.True(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should have been called."
639
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
640
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
641
Assert.True(l.
FullLog
.Contains("Compile-step-failed", StringComparison.Ordinal)); // "The Compile target should have failed."
642
Assert.False(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should not have been called."
643
Assert.False(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should not have been called."
662
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
663
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
664
Assert.True(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should have been called."
665
Assert.True(l.
FullLog
.Contains("GenerateSatellites-step-failed", StringComparison.Ordinal)); // "The GenerateSatellites target should have failed."
666
Assert.False(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should not have been called."
685
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
686
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
687
Assert.True(l.
FullLog
.Contains("Compile-step-failed", StringComparison.Ordinal)); // "The Compile target should have failed."
688
Assert.False(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should not have been called."
689
Assert.True(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should have been called."
708
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
709
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
710
Assert.True(l.
FullLog
.Contains("Compile-step-failed", StringComparison.Ordinal)); // "The Compile target should have failed."
711
Assert.False(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should not have been called."
712
Assert.False(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should not have been called."
731
Assert.True(l.
FullLog
.Contains("ResGen-was-called", StringComparison.Ordinal)); // "The ResGen target should have been called."
732
Assert.True(l.
FullLog
.Contains("Compile-was-called", StringComparison.Ordinal)); // "The Compile target should have been called."
733
Assert.True(l.
FullLog
.Contains("GenerateSatellites-was-called", StringComparison.Ordinal)); // "The GenerateSatellites target should have been called."
734
Assert.True(l.
FullLog
.Contains("GenerateSatellites-step-failed", StringComparison.Ordinal)); // "The GenerateSatellites target should have failed."
735
Assert.True(l.
FullLog
.Contains("PostBuild-was-called", StringComparison.Ordinal)); // "The PostBuild target should have been called."
BackEnd\TargetBuilder_Tests.cs (1)
234
var logText = logger.
FullLog
.Replace("\r\n", "\n");
BackEnd\TaskHost_MultiThreadableTask_Tests.cs (2)
95
_output.WriteLine(logger.
FullLog
);
103
logger.
FullLog
.ShouldContain("TaskEnvironment.ProjectDirectory=");
BackEnd\TaskHostCallback_Tests.cs (16)
102
logger.
FullLog
.ShouldContain("external task host");
105
logger.
FullLog
.ShouldContain($"IsRunningMultipleNodes = {expectedResult}");
169
logger.
FullLog
.ShouldContain("ReleaseCores(");
207
logger.
FullLog
.ShouldContain("external task host");
208
logger.
FullLog
.ShouldContain("RequestCores(1) =");
264
logger.
FullLog
.ShouldContain("external task host");
267
logger.
FullLog
.ShouldContain("GlobalProperty: TestRequestProperty=RequestValue");
268
logger.
FullLog
.ShouldContain("GlobalProperty: AnotherRequestProp=AnotherValue");
317
logger.
FullLog
.ShouldNotContain("GlobalProperty: TestRequestProperty=RequestValue");
318
logger.
FullLog
.ShouldContain("GlobalPropertyCount = 0");
358
logger.
FullLog
.ShouldContain("ChildProjectBuilt");
396
logger.
FullLog
.ShouldContain("Config=Release");
443
logger.
FullLog
.ShouldContain("OutputItemCount=2");
482
logger.
FullLog
.ShouldContain("ChildResult=False");
528
logger.
FullLog
.ShouldContain("external task host");
529
logger.
FullLog
.ShouldContain("ChildBuiltInMT");
BackEnd\TaskRouter_IntegrationTests.cs (19)
92
logger.
FullLog
.ShouldContain("NonEnlightenedTask executed");
137
logger.
FullLog
.ShouldContain("TaskWithInterface executed");
182
logger.
FullLog
.ShouldContain("TaskWithAttribute executed");
227
logger.
FullLog
.ShouldContain("NonEnlightenedTask executed");
271
logger.
FullLog
.ShouldContain("TaskWithInterface executed");
329
logger.
FullLog
.ShouldContain("NonEnlightenedTask executed");
330
logger.
FullLog
.ShouldContain("TaskWithInterface executed");
331
logger.
FullLog
.ShouldContain("TaskWithAttribute executed");
384
logger.
FullLog
.ShouldContain("TaskWithAttribute executed");
436
logger.
FullLog
.ShouldContain("RestoreTask executed");
479
logger.
FullLog
.ShouldContain("RestoreTask executed");
527
int[] pids = ExtractReportedPids(logger.
FullLog
);
529
pids.Length.ShouldBe(2, $"Expected two RestoreTask invocations to log a PID. Log:{Environment.NewLine}{logger.
FullLog
}");
580
int[] pids = ExtractReportedPids(logger.
FullLog
);
582
pids.Length.ShouldBe(2, $"Expected two RestoreTask invocations to log a PID. Log:{Environment.NewLine}{logger.
FullLog
}");
635
logger.
FullLog
.ShouldContain("RestoreTask executed");
666
logger.
FullLog
.ShouldContain(launchingMessage);
667
logger.
FullLog
.ShouldContain("external task host");
679
logger.
FullLog
.ShouldNotContain(launchingMessage);
BinaryLogger_Tests.cs (2)
180
mockLogFromPlayback.
FullLog
.ShouldContainWithoutWhitespace(mockLogFromBuild.
FullLog
);
ChangeWaves_Tests.cs (1)
66
log.
FullLog
.Contains("Hello World!").ShouldBe(isThisWaveEnabled);
Construction\SolutionProjectGenerator_Tests.cs (1)
365
Assert.Contains(text, logger.
FullLog
); // "Log should contain the regular message"
Definition\ItemDefinitionGroup_Tests.cs (1)
1088
Assert.Contains("In ItemDefinitionGroup task.", ml.
FullLog
);
Definition\ToolsVersion_Tests.cs (1)
224
Console.WriteLine(mockLogger.
FullLog
);
Evaluation\Expander_Tests.cs (3)
1354
logger.
FullLog
.ShouldContain("Value is True");
1370
logger.
FullLog
.ShouldContain("Value is False");
1386
logger.
FullLog
.ShouldContain("Value is asdf_jkl");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (3)
168
Console.WriteLine(logger.
FullLog
);
209
Console.WriteLine(logger.
FullLog
);
264
Console.WriteLine(logger.
FullLog
);
Evaluation\SdkResultEvaluation_Tests.cs (1)
368
_log.WriteLine(_logger.
FullLog
);
Graph\ResultCacheBasedBuilds_Tests.cs (5)
70
_logger.
FullLog
.ShouldContain("MSB4256:");
92
_logger.
FullLog
.ShouldContain("Writing build results caches to:");
93
_logger.
FullLog
.ShouldContain("msbuild-cache");
112
_logger.
FullLog
.ShouldContain("Using input build results caches: a;b");
113
_logger.
FullLog
.ShouldContain("Writing build results caches to: c");
Parser_Tests.cs (7)
453
Assert.Contains("MSB4130:", ml.
FullLog
); // "Need to warn for this expression - (a) == 1 and $(b) == 2 or $(c) == 3."
464
Assert.Contains("MSB4130:", ml.
FullLog
); // "Need to warn for this expression - (a) == 1 or $(b) == 2 and $(c) == 3."
475
Assert.Contains("MSB4130:", ml.
FullLog
); // "Need to warn for this expression - ($(a) == 1 or $(b) == 2 and $(c) == 3) or $(d) == 4."
495
Assert.DoesNotContain("MSB4130:", ml.
FullLog
); // "No need to warn for this expression - (a) == 1 and $(b) == 2 and $(c) == 3."
506
Assert.DoesNotContain("MSB4130:", ml.
FullLog
); // "No need to warn for this expression - (a) == 1 or $(b) == 2 or $(c) == 3."
517
Assert.DoesNotContain("MSB4130:", ml.
FullLog
); // "No need to warn for this expression - ($(a) == 1 and $(b) == 2) or $(c) == 3."
528
Assert.DoesNotContain("MSB4130:", ml.
FullLog
); // "No need to warn for this expression - ($(a) == 1 or $(b) == 2) and $(c) == 3."
ProjectCache\ProjectCacheTests.cs (33)
555
logger.
FullLog
.ShouldNotContain($"EntryPoint: {graph.GraphRoots.First().ProjectInstance.FullPath}");
556
logger.
FullLog
.ShouldContain($"EntryPoint: {graph.GraphRoots.First().ProjectReferences.First().ProjectInstance.FullPath}");
627
logger.
FullLog
.ShouldContain($"EntryPoint: {projectPath}");
628
logger.
FullLog
.ShouldContain($"Configuration:{projectName}Debug");
629
logger.
FullLog
.ShouldContain($"Platform:{projectName}x64");
632
logger.
FullLog
.ShouldNotContain("TargetFramework:net472");
729
logger.
FullLog
.ShouldNotContain("BeginBuildAsync");
730
logger.
FullLog
.ShouldNotContain("GetCacheResultAsync for");
731
logger.
FullLog
.ShouldNotContain("Querying project cache for project");
732
logger.
FullLog
.ShouldNotContain("EndBuildAsync");
804
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: BeginBuildAsync");
805
Regex.Matches(mockLogger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count);
806
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: EndBuildAsync");
813
mockLogger.
FullLog
.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithDefaultTargets"), node.ProjectInstance.FullPath));
817
mockLogger.
FullLog
.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithTargetNames"), node.ProjectInstance.FullPath, targets));
842
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: GetCacheResultAsync for {node.ProjectInstance.FullPath}");
949
logger.
FullLog
.ShouldContain($"Loading the following project cache plugin: {AssemblyMockCache}");
1031
logger.
FullLog
.ShouldContain("Reference file [Invalid file] does not exist");
1221
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1222
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1226
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedOccurrences: 1);
1227
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1230
logger.
FullLog
.ShouldNotContain("Cache plugin exception from");
1234
logger.
FullLog
.ShouldContain("Cache plugin logged error from");
1280
logger.
FullLog
.ShouldContain("Loading the following project cache plugin:");
1300
logger.
FullLog
.ShouldNotContain("Cache plugin exception from");
1304
logger.
FullLog
.ShouldContain("Cache plugin logged error from");
1325
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1326
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1335
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedQueryOccurrences);
1337
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1368
StringShouldContainSubstring(buildSession.Logger.
FullLog
, $"{nameof(AssemblyMockCache)}: EndBuildAsync", expectedOccurrences: 1);
1518
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count);
Microsoft.Build.Tasks.UnitTests (16)
MSBuild_Tests.cs (14)
192
Assert.Contains("MSB3202", logger.
FullLog
); // project file not found
215
Assert.Contains("MSB3202", logger.
FullLog
); // project file not found
249
Assert.Contains("this_project_does_not_exist.csproj", logger.
FullLog
); // for the missing project
250
Assert.DoesNotContain("MSB3202", logger.
FullLog
); // project file not found error
285
Assert.Contains("this_project_does_not_exist.csproj", logger.
FullLog
); // for the missing project
286
Assert.DoesNotContain("MSB3202", logger.
FullLog
); // project file not found error
333
Assert.Contains(message, logger.
FullLog
); // for the missing project
334
Assert.Contains(error2, logger.
FullLog
);
335
Assert.DoesNotContain(error, logger.
FullLog
);
376
Assert.Contains("MSB3204", logger.
FullLog
); // upgrade to vcxproj needed
1418
logger.
FullLog
.ShouldContain("t2 executing");
1423
logger.
FullLog
.ShouldContain("Target \"t_nonexistent\" skipped");
1447
logger.
FullLog
.ShouldContain("Target \"t_nonexistent\" skipped");
1450
logger.
FullLog
.ShouldContain("MSB4057");
MSBuildInternalMessage_Tests.cs (1)
152
logger.
FullLog
.Contains(expectedBuildMessage);
RegressionTests.cs (1)
79
Assert.True(result, "Output:" + Environment.NewLine + logger.
FullLog
);
Microsoft.Build.UnitTests.Shared (8)
EngineTestEnvironment.cs (1)
171
return (logger, () => logger.
FullLog
);
MockLogger.cs (7)
440
Console.Write(
FullLog
);
470
var reader = new StringReader(
FullLog
);
507
_testOutputHelper.WriteLine(
FullLog
);
516
$"Log was expected to contain '{contains[index]}', but did not. Full log:\n=======\n{
FullLog
}\n=======");
529
if (
FullLog
.Contains(contains))
533
_testOutputHelper.WriteLine(
FullLog
);
557
var matches = Regex.Matches(
FullLog
, regexSearch ? message : Regex.Escape(message));
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (4)
129
mockLogger.
FullLog
.Replace(Environment.NewLine, "").ShouldBe(mockLogger2.
FullLog
.Replace(Environment.NewLine, ""));
288
mockLogger2.
FullLog
.ShouldBe(mockLogger1.
FullLog
);