54 references to s_buildEventContext
Microsoft.Build.Engine.UnitTests (54)
BackEnd\LoggingServicesLogMethod_Tests.cs (54)
105service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask");
118service.LogError(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask");
138service.LogError(s_buildEventContext, subcategoryKey, fileInfo, "FatalTaskError", taskName);
168service.LogInvalidProjectFileError(s_buildEventContext, null);
185service.LogInvalidProjectFileError(s_buildEventContext, exception);
192service.LogInvalidProjectFileError(s_buildEventContext, exception);
199service.LogInvalidProjectFileError(s_buildEventContext, exception);
229service.LogFatalError(s_buildEventContext, new Exception("SuperException"), null, "FatalTaskError", "TaskName");
247service.LogFatalError(s_buildEventContext, null, fileInfo, resourceName, parameters);
261service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, null);
275service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, string.Empty, null);
296service.LogFatalError(s_buildEventContext, exception, fileInfo, resourceName, parameter);
318service.LogFatalBuildError(s_buildEventContext, exception, fileInfo);
335service.LogFatalTaskError(s_buildEventContext, new Exception("SuperException"), fileInfo, null);
354service.LogFatalTaskError(s_buildEventContext, exception, fileInfo, parameters);
360service.LogFatalTaskError(s_buildEventContext, exception, fileInfo, string.Empty);
388service.LogErrorFromText(s_buildEventContext, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", null, "Message");
512service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, null);
526service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, null);
547service.LogTaskWarningFromException(s_buildEventContext, null, fileInfo, parameters);
554service.LogTaskWarningFromException(s_buildEventContext, exception, fileInfo, parameters);
569service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), null, "MyTask");
582service.LogWarning(s_buildEventContext, "SubCategoryForSolutionParsingErrors", new BuildEventFileInfo("foo.cs"), string.Empty, "MyTask");
622service.LogWarningFromText(s_buildEventContext, "SubCategoryForSolutionParsingErrors", "WarningCode", "HelpKeyword", null, "Message");
679service.LogComment(s_buildEventContext, MessageImportance.Low, null, null);
692service.LogComment(s_buildEventContext, MessageImportance.Low, String.Empty, null);
709service.LogComment(s_buildEventContext, messageImportance, "BuildFinishedSuccess");
715service.LogComment(s_buildEventContext, MessageImportance.Normal, "BuildFinishedSuccess");
732service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, null);
743service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, string.Empty);
769service.LogCommentFromText(s_buildEventContext, messageImportance, ResourceUtilities.GetResourceString("BuildFinishedSuccess"));
774service.LogCommentFromText(s_buildEventContext, MessageImportance.Normal, ResourceUtilities.GetResourceString("BuildFinishedSuccess"));
795service.LogProjectStarted(null, 1, 2, s_buildEventContext, "ProjectFile", "TargetNames", null, null);
809service.LogProjectStarted(s_buildEventContext, 1, 2, null, "ProjectFile", "TargetNames", null, null);
844BuildEventContext context = service.LogProjectStarted(s_buildEventContext, 1, 2, s_buildEventContext, projectFile, targetNames, null, null);
845BuildEventContext parentBuildEventContext = s_buildEventContext;
1279TestLogTelemetry(buildEventContext: s_buildEventContext, eventName: "event context but no properties", properties: null);
1280TestLogTelemetry(buildEventContext: s_buildEventContext, eventName: "event context and properties", properties: eventProperties);
1351service.LogErrorFromText(s_buildEventContext, subcategoryKey, errorCode, helpKeyword, fileInfo, message);
1372service.LogWarningFromText(s_buildEventContext, subcategoryKey, warningCode, helpKeyword, fileInfo, message);
1390service.LogWarning(s_buildEventContext, subCategoryKey, fileInfo, "FatalTaskError", taskName);
1406service.LogProjectFinished(s_buildEventContext, projectFile, success);
1410Assert.Contains("ContextID " + s_buildEventContext.ProjectContextId, ex.Message);
1428s_buildEventContext,
1453service.LogTaskStarted(s_buildEventContext, taskName, projectFile, projectFileOfTask, taskAssemblyLocation);
1458service.LogTaskStarted(s_buildEventContext, taskName, projectFile, projectFileOfTask, taskAssemblyLocation);
1473service.LogTaskFinished(s_buildEventContext, taskName, projectFile, projectFileOfTask, succeeded);
1478service.LogTaskFinished(s_buildEventContext, taskName, projectFile, projectFileOfTask, succeeded);
1627taskEvent.BuildEventContext = s_buildEventContext;
1649taskEvent.BuildEventContext = s_buildEventContext;
1713buildMessageEvent.BuildEventContext = s_buildEventContext;
1740buildEvent.BuildEventContext = s_buildEventContext;
1767buildEvent.BuildEventContext = s_buildEventContext;