Exemplo n.º 1
0
 private static void OnAssemblyChanged(object sender, AssemblyEventArgs args) {
 }
Exemplo n.º 2
0
 void OnTestAssemblyRemoving(object sender, AssemblyEventArgs args) {
    UnhookTestAssembly(RecipeFactory.Current[args.PathFileName]);
 }
Exemplo n.º 3
0
 private void OnAssemblyAdded(object sender, AssemblyEventArgs args) {
    HookupAssembly(RecipeFactory.Current[args.AssemblyFullName]);
 }
Exemplo n.º 4
0
 private void TestAssemblyLoaded(object sender, AssemblyEventArgs args) {
    RefreshCategoriesList();
 }
Exemplo n.º 5
0
      private void OnAssemblyFinished(object sender, AssemblyEventArgs args) {
         var total = _document.CreateAttribute("total");
         total.Value = (_assemblyPassedCount + _assemblyErrorCount + _assemblyFailureCount + _assemblySkippedCount).ToString();
         _assembly.Attributes.Append(total);

         CreateAndAppendAssemblyAttribute("passed", _assemblyPassedCount.ToString());
         CreateAndAppendAssemblyAttribute("failures", _assemblyFailureCount.ToString());
         CreateAndAppendAssemblyAttribute("errors", _assemblyErrorCount.ToString());
         CreateAndAppendAssemblyAttribute("skipped", _assemblySkippedCount.ToString());
         CreateAndAppendAssemblyAttribute("duration", (DateTime.Now - _assemblyStartTime).TotalSeconds.ToString("0.000"));
      }
Exemplo n.º 6
0
 public void OnTestsAborted(object sender, AssemblyEventArgs args) {
 }
 private void OnAssemblyAdded(object sender, AssemblyEventArgs args) {
    var assemblyPathName = RecipeFactory.Current[args.AssemblyFullName].Name.CodeBase;
    _recentAssemblies.AddAssembly(assemblyPathName);
 }
Exemplo n.º 8
0
 public void OnAssemblyStarted(object sender, AssemblyEventArgs args) {
    lock (this) {
       if (_loader.AssemblyStarted != null) {
          foreach (AssemblyEventHandler d in _loader.AssemblyStarted.GetInvocationList()) {
             d.BeginInvoke(_loader, args, AssemblyEventHandlerAsyncCallBack, d);
          }
       }
       CheckAbortThread();
    }
 }
Exemplo n.º 9
0
 public void OnTestsAborted(object sender, AssemblyEventArgs args) {
    // Don't check for aborting the thread in this case. This has 
    // already happened. The thread is about to abort. [28mar07, ml]
 }
Exemplo n.º 10
0
 private void LoaderAssemblyStarted(object sender, AssemblyEventArgs args) {
   _assembliesStartedCount++;
 }
Exemplo n.º 11
0
 private static void LoaderTestsAborted(object sender, AssemblyEventArgs args) {
 }
Exemplo n.º 12
0
 private void LoaderAssemblyFinished(object sender, AssemblyEventArgs args) {
    _assembliesFinishedCount++;
    _testsRunning = false;
 }
Exemplo n.º 13
0
 private void OnAssemblyRemoving(object sender, AssemblyEventArgs args) {
    ITestAssembly ta = RecipeFactory.Current[args.AssemblyFullName];
    UnhookAssembly(ta);
    UpdateFormTitle();
 }
Exemplo n.º 14
0
 private void OnAssemblyAdded(object sender, AssemblyEventArgs args) {
    ITestAssembly ta = RecipeFactory.Current[args.AssemblyFullName];
    HookupAssembly(ta);
    UpdateFormTitle();
 }
Exemplo n.º 15
0
 public void OnAssemblyStarted(object sender, AssemblyEventArgs args) {
 }
Exemplo n.º 16
0
 public void OnAssemblyLoaded(object sender, AssemblyEventArgs args) {
    lock (this) {
       if (_loader.AssemblyLoaded != null) {
          FireAndForget(_loader.AssemblyLoaded, args);
       }
       CheckAbortThread();
    }
 }
Exemplo n.º 17
0
 public void OnAssemblyFinished(object sender, AssemblyEventArgs args) {
 }
Exemplo n.º 18
0
 private void FireAndForget(Delegate handler, AssemblyEventArgs args) {
    foreach (AssemblyEventHandler aeh in handler.GetInvocationList()) {
       aeh.BeginInvoke(_loader, args, AssemblyEventHandlerAsyncCallBack, aeh);
    }
 }
Exemplo n.º 19
0
 private void OnAssemblyEvent(object sender, AssemblyEventArgs args) {
    UpdateEnabledStatus();
 }
Exemplo n.º 20
0
 void ITestListener.OnAssemblyLoaded(object sender, AssemblyEventArgs args)
 {
 }
Exemplo n.º 21
0
 private void CurrentAssemblyAdded(object sender, AssemblyEventArgs args) {
    RefreshCategoriesList();
 }
Exemplo n.º 22
0
            void ITestListener.OnAssemblyStarted(object sender, AssemblyEventArgs args)
            {
                ITestCommand testCommand;
                string testName = args.AssemblyFullName.Split(',')[0];
                if (!testCommandsByName.TryGetValue(testName, out testCommand))
                    return;

                progressMonitor.SetStatus(testCommand.Test.Name);

                ITestContext testContext = testCommand.StartPrimaryChildStep(topTestStep);
                testContext.LifecyclePhase = LifecyclePhases.Execute;
                testContextStack.Push(testContext);
                assemblyFailureCount = 0;
                assemblyErrorCount = 0;
            }
Exemplo n.º 23
0
      private void OnAssemblyStarted(object sender, AssemblyEventArgs args) {
         _assemblyPassedCount = 0;
         _assemblyErrorCount = 0;
         _assemblyFailureCount = 0;
         _assemblySkippedCount = 0;
         _assemblyStartTime = DateTime.Now;

         _assembly = _document.CreateElement("assembly");
         var name = _document.CreateAttribute("name");
         name.Value = args.AssemblyFullName;
         _assembly.Attributes.Append(name);
         _results.AppendChild(_assembly);
      }
Exemplo n.º 24
0
 void ITestListener.OnTestsAborted(object sender, AssemblyEventArgs args)
 {
 }
Exemplo n.º 25
0
 void OnTestAssemblyAdded(object sender, AssemblyEventArgs args) {
    HookupTestAssembly(RecipeFactory.Current[args.PathFileName]);
 }
Exemplo n.º 26
0
            void ITestListener.OnAssemblyFinished(object sender, AssemblyEventArgs args)
            {
                ITestCommand testCommand;
                string testName = args.AssemblyFullName.Split(',')[0];
                if (!testCommandsByName.TryGetValue(testName, out testCommand))
                    return;

                if (testContextStack.Count == 0)
                    return;

                ITestContext testContext = testContextStack.Pop();
                
                while (testContext.TestStep.Test != testCommand.Test)
                {
                    testContext.FinishStep(GetFixtureOutcome(fixtureFailureCount, fixtureErrorCount), null);
                    testContext = testContextStack.Pop();

                    progressMonitor.Worked(1);
                }

                topResult = testContext.FinishStep(CalculateOutcome(assemblyFailureCount, assemblyErrorCount), null);

                progressMonitor.Worked(1);
            }            
Exemplo n.º 27
0
 public void OnTestsAborted(object sender, AssemblyEventArgs args) {
    throw new Exception("The method or operation is not implemented.");
 }
Exemplo n.º 28
0
 public void OnAssemblyLoaded(object sender, AssemblyEventArgs args) {
 }
Exemplo n.º 29
0
 private void OnAssemblyRemoving(object sender, AssemblyEventArgs args) {
    var ta = RecipeFactory.Current[args.AssemblyFullName];
    ta.TestError -= _onTestErrorOrFail;
    ta.TestFailed -= _onTestErrorOrFail;
 }
Exemplo n.º 30
0
 public void OnTestsAborted(object sender, AssemblyEventArgs args) {
    throw new NotImplementedException();
 }