Ejemplo n.º 1
0
		protected virtual void OnUpdated(ResultEventArgs args)
		{
			if (this.Updated!=null)
				this.Updated(args);
		}
Ejemplo n.º 2
0
		public void Changed(ResultEventArgs args)
		{
			switch(args.State)
			{
				case TestState.Running: Start(args.PipeIdentifier);break;
				case TestState.Success: Success(args.PipeIdentifier);break;
				case TestState.Failure: Failure(args.PipeIdentifier);break;
				case TestState.Ignored: Ignore(args.PipeIdentifier);break;
			}
			this.OnUpdated(args);
		}
 private void Facade_Updated(ResultEventArgs args)
 {
     switch(args.State)
     {
         case TestState.Failure:
             this.counter.FailureCount++;break;
         case TestState.Ignored:
             this.counter.IgnoreCount++;break;
         case TestState.Success:
             this.Counter.SuccessCount++;break;
         case TestState.Skip:
             this.Counter.SkipCount++; break;
     }
     this.Invoke(new MethodInvoker(this.Invalidate));
 }