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