title: MSTest context and TLS version
body: <p>We have a unit test that needs to connect to a TLS v1.1+ endpoint.</p>
  
  <p>The test will fail if we don't force the TLS version to v1.1 or higher in the test context.</p>
  
  <p>But out side of the text context, the code works fine even if we don't force it.</p>
  
  <p>Our conclusion is that MSTest context reset TLS version to 1.0 or SSL3 even if the server can use TLS 1.1 or higher.</p>
  
  <p>We are forcing the TLS version with the code below, but wonder why we are having this problem at all. The MSTest we use is deployed from Visual Studio Test Agent 2015 and Jenkins ran by Jenkins.</p>
  
  <pre><code>[AssemblyInitialize]
  public static void AssemblyInit(TestContext context)
  {
      System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
  }
  </code></pre>