title: Why is this NUnit test failing?
body: <p>This is an "extension" of the question <a href="https://stackoverflow.com/questions/24614807/why-are-breakpoints-in-tests-not-hit">here</a></p>
  
  <p>I am now running two instances of Visual Studio / the solution. I start one, and then in the other I access the context menu for this test:</p>
  
  <pre><code>public enum HttpMethods
  {
      GET = 0,
      PUT,
      POST,
      DELETE,
      HEAD,
      OPTIONS,
      LIST,
      UNKNOWN
  }
  
  [Test]
  public HttpWebRequest TestHHSDeliveryItemInterfacePostPPTData()
  {
      var DeliveryItem = IOC.container.Resolve&lt;IHHSDeliveryItem&gt;();
  
      string data = @"&lt;note&gt;
                          &lt;to&gt;Tove&lt;/to&gt;
                          &lt;from&gt;Jani&lt;/from&gt;
                          &lt;heading&gt;Reminder&lt;/heading&gt;
                          &lt;body&gt;Don't forget me this weekend!&lt;/body&gt;
                      &lt;/note&gt;";
      string uri = "http://localhost:21609/api/deliveryitems/InsertIntoPPTData";
      WebRequest request = WebRequest.Create(uri);
      request.Method =  //Enum.ToObject(typeof(HttpMethods), HHTPMethods.).ToString();
      request.ContentType = "application/json";
      ((HttpWebRequest)request).Accept = request.ContentType;
      ((HttpWebRequest)request).KeepAlive = false;
      ((HttpWebRequest)request).ProtocolVersion = HttpVersion.Version10;
  
      Encoding encoding = Encoding.UTF8; // never used
      byte[] arrData = Encoding.UTF8.GetBytes(data);
      request.ContentLength = arrData.Length;
      using (Stream oS = request.GetRequestStream())
      {
          oS.Write(arrData, 0, arrData.Length);
      }
  
      if (DeliveryItem.InsertIntoPPTData((HttpWebRequest)request))
      {
          return request as HttpWebRequest;
      }
      else
      {
          return null;
      }
  }
  </code></pre>
  
  <p>...and select "Debug Test." Tragically, though, I (again) never reach the breakpoint I've set (on the first line above, the assignment to "DeliveryItem "). And the Output pane is then filled with the following logsam and dumpsam:</p>
  
  <pre>
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Windows\Microsoft.Net\assembly
  \GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \vstest.executionengine.x86.exe'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Microsoft.VisualStudio.TestPlatform.ObjectModel.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Microsoft.VisualStudio.TestPlatform.Core.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel
  \v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization
  \v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals
  \v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink
  \v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel
  \v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll'. 
  Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Microsoft.VisualStudio.TestPlatform.Utilities.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.Measurement\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.Measurement.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.GenericTestAdapter.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.MSAppContainerAdapter.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.UnitTestFramework.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.MSPhoneAdapter.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.OrderedTestAdapter.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TfsLogger.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TmiAdapter.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.QualityTools.Common\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.QualityTools.Common.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.TrxLogger.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestPlatform.Extensions.VSTestIntegration.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.QualityTools.UnitTestFramework\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Extensions\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.ComInterfaces.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\Extensions\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.CppPhoneUnitTestExtension.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Composition
  \v4.0_4.0.0.0__b77a5c561934e089\System.ComponentModel.Composition.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \Extensions\Microsoft.VisualStudio.TestTools.CppUnitTestFramework.CppUnitTestExtension.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\NUnit.VisualStudio.TestAdapter.dll'. 
  Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.interfaces.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.util.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: Domain 2): Loaded 'C:\Windows\Microsoft.Net\assembly
  \GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.interfaces.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\5280_635403276502133355\Tests_11081234\assembly\dl3\ed8d1526\6266a85f_0d9acf01\HHS.Web.Tests.dll'. Symbols loaded.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Loaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\5280_635403276502133355\Tests_11081234\assembly\dl3\aef8b6df\f8a3911b_1f92cf01\nunit.framework.dll'. Module was built without symbols.
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: vstest.executionengine.x86.exe): Loaded 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
  \msdia120typelib_clr0200.dll'. Cannot find or open the PDB file.
  The thread 0x3bf4 has exited with code 259 (0x103).
  The thread 0x2a0c has exited with code 259 (0x103).
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: Domain 2): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\VisualStudioTestExplorerExtensions\NUnitTestAdapter.1.0\lib\nunit.core.interfaces.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\5280_635403276502133355\Tests_11081234\assembly\dl3\ed8d1526\6266a85f_0d9acf01\HHS.Web.Tests.dll'
  'vstest.executionengine.x86.exe' (CLR v4.0.30319: test-domain-HHS.Web.Tests.dll): Unloaded 'C:\Users\clay\AppData\Local\Temp\nunit20\ShadowCopyCache\5280_635403276502133355\Tests_11081234\assembly\dl3\aef8b6df\f8a3911b_1f92cf01\nunit.framework.dll'
  A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  The thread 0x2b7c has exited with code 259 (0x103).
  A first chance exception of type 'System.InvalidOperationException' occurred in 
  
  Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
  The thread 0x2344 has exited with code 259 (0x103).
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectbortedException' occurred in System.ServiceModel.Internals.dll
  A first chance exception of type 'System.IO.IOException' occurred in System.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.Internals.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.Internals.dll
  A first chance exception of type 'System.InvalidOperationException' occurred in 
  Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
  The program '[5280] vstest.executionengine.x86.exe: Program Trace' has exited with code 0 (0x0).
  The program '[5280] vstest.executionengine.x86.exe' has exited with code 0 (0x0).
  </pre>
  
  <p><strong><em>Note: I am able to successfully run simple tests in this manner; this one is problematic for some reason...</em></strong></p>
  
  <h2>UPDATE</h2>
  
  <p>Okay, that was really bizarre: that code compiled, even though an assignment was commented out. It is now:</p>
  
  <pre><code>request.Method = Enum.ToObject(typeof(HttpMethods), HttpMethods.POST).ToString();
  </code></pre>
  
  <h2>UPDATE 2</h2>
  
  <p>I have replaced the return type of the method with void, and the if/else block at the end with:</p>
  
  <pre><code>Assert.IsNotNull(request);
  </code></pre>
  
  <h2>UPDATE 3</h2>
  
  <p>I had forgotten to add the line of code that actually sends the request (it doesn't seem real transparent to me the way it works), so after writing to the stream in using block I now have:</p>
  
  <pre><code>WebResponse response = request.GetResponse();
  Assert.IsNotNull(response);
  </code></pre>
  
  <p>...but I'm still getting an epoch, if not epic fail:</p>
  
  <p><em>. . .
  A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
  The thread 0x3114 has exited with code 259 (0x103).
  A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
  A first chance exception of type 'System.ServiceModel.CommunicationObjectAbortedException' occurred in System.ServiceModel.dll
  The thread 0x3d7c has exited with code 259 (0x103).
  A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.VisualStudio.TestPlatform.TestExecutor.Core.dll
  The program '[12252] vstest.executionengine.x86.exe: Program Trace' has exited with code 0 (0x0).
  The program '[12252] vstest.executionengine.x86.exe' has exited with code 0 (0x0).</em></p>