public void AssignmentTest() { ExternalProjectFinishedEventArgs epfea; string message = "message"; string helpKeyword = "helpKeyword"; string senderName = "senderName"; string projectFile = "projectFile"; bool succeeded = true; epfea = new ExternalProjectFinishedEventArgs(message, helpKeyword, senderName, projectFile, succeeded); Assert.AreEqual(message, epfea.Message, "Message"); Assert.AreEqual(helpKeyword, epfea.HelpKeyword, "HelpKeyword"); Assert.AreEqual(senderName, epfea.SenderName, "SenderName"); Assert.AreEqual(projectFile, epfea.ProjectFile, "ProjectFile"); Assert.AreEqual(succeeded, epfea.Succeeded, "Succeeded"); }
/// <summary> /// Read and reconstruct a ProjectFinishedEventArgs from the stream /// </summary> private ExternalProjectFinishedEventArgs ReadExternalProjectFinishedEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) { string projectFile = null; translator.Translate(ref projectFile); bool succeeded = true; translator.Translate(ref succeeded); ExternalProjectFinishedEventArgs buildEvent = new ExternalProjectFinishedEventArgs( message, helpKeyword, senderName, projectFile, succeeded); return(buildEvent); }
public void LogExternalProjectFinished(string message, string helpKeyword, string projectFile, bool succeeded) { ExternalProjectFinishedEventArgs e = new ExternalProjectFinishedEventArgs(message, helpKeyword, this.TaskName, projectFile, succeeded); this.BuildEngine.LogCustomEvent(e); }