54 references to s_buildEventContext
Microsoft.Build.Engine.UnitTests (54)
BackEnd\LoggingServicesLogMethod_Tests.cs (54)
106service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 119service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 139service.LogError(s_buildEventContext, subcategoryKey, fileInfo, "FatalTaskError", taskName); 169service.LogInvalidProjectFileError(s_buildEventContext, null); 186service.LogInvalidProjectFileError(s_buildEventContext, exception); 193service.LogInvalidProjectFileError(s_buildEventContext, exception); 200service.LogInvalidProjectFileError(s_buildEventContext, exception); 230service.LogFatalError(s_buildEventContext, new Exception("SuperException"), null, "FatalTaskError", "TaskName"); 248service.LogFatalError(s_buildEventContext, null, fileInfo, resourceName, parameters); 262service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, null); 276service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, string.Empty, null); 297service.LogFatalError(s_buildEventContext, exception, fileInfo, resourceName, parameter); 319service.LogFatalBuildError(s_buildEventContext, exception, fileInfo); 336service.LogFatalTaskError(s_buildEventContext, new Exception("SuperException"), fileInfo, null); 355service.LogFatalTaskError(s_buildEventContext, exception, fileInfo, parameters); 361service.LogFatalTaskError(s_buildEventContext, exception, fileInfo, string.Empty); 389service.LogErrorFromText(s_buildEventContext, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", null, "Message"); 513service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, null); 527service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, null); 548service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, parameters); 555service.LogTaskWarningFromException(s_buildEventContext, exception, fileInfo, parameters); 570service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask"); 583service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask"); 623service.LogWarningFromText(s_buildEventContext, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", null, "Message"); 680service.LogComment(s_buildEventContext, MessageImportance.Low, null, null); 693service.LogComment(s_buildEventContext, MessageImportance.Low, String.Empty, null); 710service.LogComment(s_buildEventContext, messageImportance, "BuildFinishedSuccess"); 716service.LogComment(s_buildEventContext, MessageImportance.Normal, "BuildFinishedSuccess"); 733service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, null); 744service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, string.Empty); 770service.LogCommentFromText(s_buildEventContext, messageImportance, ResourceUtilities.GetResourceString("BuildFinishedSuccess")); 775service.LogCommentFromText(s_buildEventContext, MessageImportance.Normal, ResourceUtilities.GetResourceString("BuildFinishedSuccess")); 796service.LogProjectStarted(null, 1, 2, s_buildEventContext, "ProjectFile", "TargetNames", null, null); 810service.LogProjectStarted(s_buildEventContext, 1, 2, null, "ProjectFile", "TargetNames", null, null); 845BuildEventContext context = service.LogProjectStarted(s_buildEventContext, 1, 2, s_buildEventContext, projectFile, targetNames, null, null); 846BuildEventContext parentBuildEventContext = s_buildEventContext; 1280TestLogTelemetry(buildEventContext: s_buildEventContext, eventName: "event context but no properties", properties: null); 1281TestLogTelemetry(buildEventContext: s_buildEventContext, eventName: "event context and properties", properties: eventProperties); 1352service.LogErrorFromText(s_buildEventContext, subcategoryKey, errorCode, helpKeyword, fileInfo, message); 1373service.LogWarningFromText(s_buildEventContext, subcategoryKey, warningCode, helpKeyword, fileInfo, message); 1391service.LogWarning(s_buildEventContext, subCategoryKey, fileInfo, "FatalTaskError", taskName); 1407service.LogProjectFinished(s_buildEventContext, projectFile, success); 1411Assert.Contains("ContextID " + s_buildEventContext.ProjectContextId, ex.Message); 1429s_buildEventContext, 1454service.LogTaskStarted(s_buildEventContext, taskName, projectFile, projectFileOfTask, taskAssemblyLocation); 1459service.LogTaskStarted(s_buildEventContext, taskName, projectFile, projectFileOfTask, taskAssemblyLocation); 1474service.LogTaskFinished(s_buildEventContext, taskName, projectFile, projectFileOfTask, succeeded); 1479service.LogTaskFinished(s_buildEventContext, taskName, projectFile, projectFileOfTask, succeeded); 1628taskEvent.BuildEventContext = s_buildEventContext; 1650taskEvent.BuildEventContext = s_buildEventContext; 1714buildMessageEvent.BuildEventContext = s_buildEventContext; 1741buildEvent.BuildEventContext = s_buildEventContext; 1768buildEvent.BuildEventContext = s_buildEventContext;