public void ValidateDoesNotAllowaNegativeProfilerTimeout()
 {
     var trace = new ConfigurationTrace(null, null);
     var errorProcesser = this.mocks.StrictMock<IConfigurationErrorProcesser>();
     Expect.Call(() => errorProcesser.ProcessError("profilerTimeout cannot be negative"));
     var task = new AntsPerformanceProfilerTask();
     task.ProfilerTimeOut = -1;
     this.mocks.ReplayAll();
     task.Validate(null, trace, errorProcesser);
     this.mocks.VerifyAll();
 }
 public void ValidateDoesNotAllowBothQuietAndVerbose()
 {
     var trace = new ConfigurationTrace(null, null);
     var errorProcesser = this.mocks.StrictMock<IConfigurationErrorProcesser>();
     Expect.Call(() => errorProcesser.ProcessError("Cannot have both verbose and quiet set"));
     var task = new AntsPerformanceProfilerTask();
     task.Quiet = true;
     task.Verbose = true;
     this.mocks.ReplayAll();
     task.Validate(null, trace, errorProcesser);
     this.mocks.VerifyAll();
 }