151 references to FullLog
Microsoft.Build.Engine.UnitTests (123)
BackEnd\BuildManager_Tests.cs (4)
1996
Assert.Contains(skippedMessage, _logger.
FullLog
);
3908
Assert.Contains("The target \"Foo\" does not exist in the project", _logger.
FullLog
,
4371
logger.
FullLog
.ShouldContain("Static graph loaded in");
4372
logger.
FullLog
.ShouldContain("3 nodes, 2 edges");
BackEnd\MSBuild_Tests.cs (15)
211
Assert.Contains(error, logger.
FullLog
);
235
Assert.Contains(error, logger.
FullLog
);
271
Assert.Contains(message, logger.
FullLog
); // for the missing project
272
Assert.DoesNotContain(error, logger.
FullLog
);
309
Assert.Contains(message, logger.
FullLog
); // for the missing project
310
Assert.DoesNotContain(error, logger.
FullLog
);
358
Assert.Contains(message, logger.
FullLog
); // for the missing project
359
Assert.Contains(error2, logger.
FullLog
);
360
Assert.DoesNotContain(error, logger.
FullLog
);
402
Assert.Contains(error, logger.
FullLog
);
683
Console.WriteLine(logger.
FullLog
);
750
Console.WriteLine(logger.
FullLog
);
797
_testOutput.WriteLine(logger.
FullLog
);
829
_testOutput.WriteLine(logger.
FullLog
);
876
_testOutput.WriteLine(logger.
FullLog
);
BackEnd\OnError_Tests.cs (46)
51
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
210
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
211
Assert.True(l.
FullLog
.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called."
243
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
244
Assert.True(l.
FullLog
.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called."
276
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
277
Assert.True(l.
FullLog
.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called."
308
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
309
Assert.True(l.
FullLog
.IndexOf("Error-in-build-step-1") != -1); // "The BuildStep1 target should have been called."
335
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") == -1); // "The CleanUp target should not have been called."
363
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
391
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") == -1); // "The CleanUp target should not have been called."
423
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
464
Assert.True(l.
FullLog
.IndexOf("CleanUp1-was-called") != -1); // "The CleanUp1 target should have been called."
465
Assert.True(l.
FullLog
.IndexOf("CleanUp2-was-called") != -1); // "The CleanUp2 target should have been called."
466
Assert.True(l.
FullLog
.IndexOf("CleanUp3-was-called") != -1); // "The CleanUp3 target should have been called."
521
Assert.True(l.
FullLog
.IndexOf("CleanUp-was-called") != -1); // "The CleanUp target should have been called."
617
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
618
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
619
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called."
620
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called."
639
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
640
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
641
Assert.True(l.
FullLog
.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed."
642
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called."
643
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called."
662
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
663
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
664
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called."
665
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-step-failed") != -1); // "The GenerateSatellites target should have failed."
666
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called."
685
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
686
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
687
Assert.True(l.
FullLog
.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed."
688
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called."
689
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called."
708
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
709
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
710
Assert.True(l.
FullLog
.IndexOf("Compile-step-failed") != -1); // "The Compile target should have failed."
711
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") == -1); // "The GenerateSatellites target should not have been called."
712
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") == -1); // "The PostBuild target should not have been called."
731
Assert.True(l.
FullLog
.IndexOf("ResGen-was-called") != -1); // "The ResGen target should have been called."
732
Assert.True(l.
FullLog
.IndexOf("Compile-was-called") != -1); // "The Compile target should have been called."
733
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-was-called") != -1); // "The GenerateSatellites target should have been called."
734
Assert.True(l.
FullLog
.IndexOf("GenerateSatellites-step-failed") != -1); // "The GenerateSatellites target should have failed."
735
Assert.True(l.
FullLog
.IndexOf("PostBuild-was-called") != -1); // "The PostBuild target should have been called."
BackEnd\TargetBuilder_Tests.cs (1)
230
var logText = logger.
FullLog
.Replace("\r\n", "\n");
BinaryLogger_Tests.cs (2)
180
mockLogFromPlayback.
FullLog
.ShouldContainWithoutWhitespace(mockLogFromBuild.
FullLog
);
ChangeWaves_Tests.cs (1)
68
log.
FullLog
.Contains("Hello World!").ShouldBe(isThisWaveEnabled);
Construction\SolutionProjectGenerator_Tests.cs (1)
337
Assert.Contains(text, logger.
FullLog
); // "Log should contain the regular message"
Definition\ToolsVersion_Tests.cs (1)
225
Console.WriteLine(mockLogger.
FullLog
);
Evaluation\Expander_Tests.cs (3)
1309
logger.
FullLog
.ShouldContain("Value is True");
1325
logger.
FullLog
.ShouldContain("Value is False");
1341
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)
334
_log.WriteLine(_logger.
FullLog
);
Graph\ResultCacheBasedBuilds_Tests.cs (5)
72
_logger.
FullLog
.ShouldContain("MSB4256:");
94
_logger.
FullLog
.ShouldContain("Writing build results caches to:");
95
_logger.
FullLog
.ShouldContain("msbuild-cache");
114
_logger.
FullLog
.ShouldContain("Using input build results caches: a;b");
115
_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)
538
logger.
FullLog
.ShouldNotContain($"EntryPoint: {graph.GraphRoots.First().ProjectInstance.FullPath}");
539
logger.
FullLog
.ShouldContain($"EntryPoint: {graph.GraphRoots.First().ProjectReferences.First().ProjectInstance.FullPath}");
610
logger.
FullLog
.ShouldContain($"EntryPoint: {projectPath}");
611
logger.
FullLog
.ShouldContain($"Configuration:{projectName}Debug");
612
logger.
FullLog
.ShouldContain($"Platform:{projectName}x64");
615
logger.
FullLog
.ShouldNotContain("TargetFramework:net472");
712
logger.
FullLog
.ShouldNotContain("BeginBuildAsync");
713
logger.
FullLog
.ShouldNotContain("GetCacheResultAsync for");
714
logger.
FullLog
.ShouldNotContain("Querying project cache for project");
715
logger.
FullLog
.ShouldNotContain("EndBuildAsync");
787
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: BeginBuildAsync");
788
Regex.Matches(mockLogger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for").Count.ShouldBe(graph.ProjectNodes.Count);
789
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: EndBuildAsync");
796
mockLogger.
FullLog
.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithDefaultTargets"), node.ProjectInstance.FullPath));
800
mockLogger.
FullLog
.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithTargetNames"), node.ProjectInstance.FullPath, targets));
825
mockLogger.
FullLog
.ShouldContain($"{AssemblyMockCache}: GetCacheResultAsync for {node.ProjectInstance.FullPath}");
932
logger.
FullLog
.ShouldContain($"Loading the following project cache plugin: {AssemblyMockCache}");
1014
logger.
FullLog
.ShouldContain("Reference file [Invalid file] does not exist");
1204
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1205
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1209
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedOccurrences: 1);
1210
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1213
logger.
FullLog
.ShouldNotContain("Cache plugin exception from");
1217
logger.
FullLog
.ShouldContain("Cache plugin logged error from");
1263
logger.
FullLog
.ShouldContain("Loading the following project cache plugin:");
1283
logger.
FullLog
.ShouldNotContain("Cache plugin exception from");
1287
logger.
FullLog
.ShouldContain("Cache plugin logged error from");
1308
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: GetCacheResultAsync for");
1309
logger.
FullLog
.ShouldNotContain($"{AssemblyMockCache}: EndBuildAsync");
1318
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", expectedQueryOccurrences);
1320
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: EndBuildAsync", expectedOccurrences: 1);
1351
StringShouldContainSubstring(buildSession.Logger.
FullLog
, $"{nameof(AssemblyMockCache)}: EndBuildAsync", expectedOccurrences: 1);
1501
StringShouldContainSubstring(logger.
FullLog
, $"{AssemblyMockCache}: GetCacheResultAsync for", graph.ProjectNodes.Count);
Microsoft.Build.Tasks.UnitTests (16)
MSBuild_Tests.cs (14)
193
Assert.Contains("MSB3202", logger.
FullLog
); // project file not found
216
Assert.Contains("MSB3202", logger.
FullLog
); // project file not found
250
Assert.Contains("this_project_does_not_exist.csproj", logger.
FullLog
); // for the missing project
251
Assert.DoesNotContain("MSB3202", logger.
FullLog
); // project file not found error
286
Assert.Contains("this_project_does_not_exist.csproj", logger.
FullLog
); // for the missing project
287
Assert.DoesNotContain("MSB3202", logger.
FullLog
); // project file not found error
334
Assert.Contains(message, logger.
FullLog
); // for the missing project
335
Assert.Contains(error2, logger.
FullLog
);
336
Assert.DoesNotContain(error, logger.
FullLog
);
377
Assert.Contains("MSB3204", logger.
FullLog
); // upgrade to vcxproj needed
1419
logger.
FullLog
.ShouldContain("t2 executing");
1424
logger.
FullLog
.ShouldContain("Target \"t_nonexistent\" skipped");
1448
logger.
FullLog
.ShouldContain("Target \"t_nonexistent\" skipped");
1451
logger.
FullLog
.ShouldContain("MSB4057");
MSBuildInternalMessage_Tests.cs (1)
153
logger.
FullLog
.Contains(expectedBuildMessage);
RegressionTests.cs (1)
81
Assert.True(result, "Output:" + Environment.NewLine + logger.
FullLog
);
Microsoft.Build.UnitTests.Shared (8)
EngineTestEnvironment.cs (1)
172
return (logger, () => logger.
FullLog
);
MockLogger.cs (7)
441
Console.Write(
FullLog
);
471
var reader = new StringReader(
FullLog
);
508
_testOutputHelper.WriteLine(
FullLog
);
517
$"Log was expected to contain '{contains[index]}', but did not. Full log:\n=======\n{
FullLog
}\n=======");
530
if (
FullLog
.Contains(contains))
534
_testOutputHelper.WriteLine(
FullLog
);
558
var matches = Regex.Matches(
FullLog
, regexSearch ? message : Regex.Escape(message));
Microsoft.Build.Utilities.UnitTests (4)
MuxLogger_Tests.cs (4)
131
mockLogger.
FullLog
.Replace(Environment.NewLine, "").ShouldBe(mockLogger2.
FullLog
.Replace(Environment.NewLine, ""));
290
mockLogger2.
FullLog
.ShouldBe(mockLogger1.
FullLog
);