~charlie.poole/nunit-vs-adapter/rc1

« back to all changes in this revision

Viewing changes to src/NUnitTestAdapter/NUnitTestExecutor.cs

  • Committer: Charlie Poole
  • Date: 2013-08-11 03:20:44 UTC
  • Revision ID: charlie@nunit.org-20130811032044-9i29nr3vryf9eqwl
Preparation for Release Candidate: Clean up unused code, add error messages, advance version number

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
using System.Linq;
8
8
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
9
9
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
10
 
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Logging;
11
10
using NUnit.Core;
12
 
using NUnit.Core.Filters;
13
11
using NUnit.Util;
14
12
// #define LAUNCHDEBUGGER
15
13
 
16
14
namespace NUnit.VisualStudio.TestAdapter
17
15
{
18
 
    using System.Diagnostics;
19
16
 
20
17
    [ExtensionUri(NUnitTestExecutor.ExecutorUri)]
21
18
    public sealed class NUnitTestExecutor : NUnitTestAdapter, ITestExecutor
51
48
                CleanUpRegisteredChannels();
52
49
                var tfsfilter = new TFSTestFilter(runContext);
53
50
                isCalledFromTfsBuild = tfsfilter.TfsTestCaseFilterExpression != null;
54
 
                this.SendDebugMessage("Keepalive:" + runContext.KeepAlive);
 
51
                SendDebugMessage("Keepalive:" + runContext.KeepAlive);
55
52
                if (!isCalledFromTfsBuild && runContext.KeepAlive)
56
53
                    frameworkHandle.EnableShutdownAfterTestRun = true;
57
54
                foreach (var source in sources)
140
137
                    catch (NullReferenceException)
141
138
                    {
142
139
                        // this happens during the run when CancelRun is called.
143
 
                        this.SendDebugMessage("Nullref catched");
 
140
                        SendDebugMessage("Nullref caught");
144
141
                    }
145
142
                    finally
146
143
                    {