示例#1
0
 private void Monitor_MessageReceived(string projectName, ThoughtWorks.CruiseControl.Remote.Message message)
 {
     // filter out unwanted messages, this should only allow messages that are not 'build' related
     // example of messages to allow : fixing the build, aborted the build, ...
     if (message.Kind == Remote.Message.MessageKind.NotDefined)
     {
         return;
     }
     trayIcon.ShowBalloonTip(5000, projectName, message.ToString(), ToolTipIcon.Info);
 }
		private void Monitor_MessageReceived(string projectName, Message message)
		{
			Notification notification = new Notification(ApplicationName, "Message", null, projectName, message.ToString());
			growl.Notify(notification);
		}
示例#3
0
 private void Monitor_MessageReceived(string projectName, ThoughtWorks.CruiseControl.Remote.Message message)
 {
     trayIcon.ShowBalloonTip(5000, projectName, message.ToString(), ToolTipIcon.Info);
 }
 public void GetHashCodeReturnsStringHashCode()
 {
     var msg = new Message("A message");
     var hashCode = msg.GetHashCode();
     Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode());
 }
 public void ToStringReturnsMessage()
 {
     string expected = "Testing";
     Message value = new Message(expected);
     Assert.AreEqual(expected, value.ToString());
 }
示例#6
0
 public void GetHashCodeWithNullMessage()
 {
     var msg = new Message(null, Message.MessageKind.BuildAbortedBy);
     Assert.AreEqual(msg.ToString().GetHashCode(), msg.GetHashCode());
 }