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