title: NUnit Not Utilizing Paramaters and Settings in .runsettings File
body: <p>I'm trying to switch over an existing Selenium solution to use NUnit due to it's support of parallelization of tests within the same class. The problem I'm having is that it doesn't seem to be using the selected <code>.runsettings</code> file, despite the fact that it's <a href="https://github.com/nunit/nunit3-vs-adapter/issues/145" rel="noreferrer">supported by NUnit</a>. By this, I mean that <code>TestContext.Parameters.Count</code> is always 0, and it doesn't store results in the path specified in the <code>&lt;ResultDirectory&gt;</code> node of my .runsettings file.</p>
  
  <p>I've looked over the documentation and the reference to <a href="https://github.com/nunit/nunit3-vs-adapter/blob/master/src/NUnitTestAdapter/AdapterSettings.cs#L143" rel="noreferrer">AdapterSettings</a> (which has logic for parsing the .runsettings file) and I can't f figure out why my <code>TestContext.Paramaters</code> are never populated in my test when I use a <code>.runsettings</code> file.</p>
  
  <p>I created a bare-bones test solution just as a sanity check and POC and it's still not populating.</p>
  
  <p>I have <br/>
  -<code>NUnit 3.7.1</code><br/>
  -<code>NUnit3TestAdapter 3.7.0</code><br/>
  -<code>VisualStudio Professional 2017</code><br/></p>
  
  <p>My .runsettings file is:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RunSettings&gt;
  &lt;!-- Parameters used by tests at runtime --&gt;
    &lt;TestRunParameters&gt;
      &lt;Parameter name ="testParameter1" value="value1" /&gt;
      &lt;Parameter name ="testParameter2" value="value2" /&gt;
    &lt;/TestRunParameters&gt;
  &lt;/RunSettings&gt;
  </code></pre>
  
  <p>All I'm trying to do in the test:</p>
  
  <pre class="lang-c# prettyprint-override"><code>using System;
  using NUnit.Framework;
  
  namespace ClassLibrary1
  {
      [TestFixture]
      public class UnitTestClass1
      {
          [Test]
          [Parallelizable(ParallelScope.All)]
          public void Class1TestMethod1()
          {
              // Below always returns 0
              Console.WriteLine(TestContext.Parameters.Count);
  
              // Below returns null
              Console.WriteLine(TestContext.Parameters["testParameter1"]);
          }
      }
  }
  </code></pre>
  
  <p>I could really use some other suggestions on how to troubleshoot. We use .runsettings files extensively for our test suite with the built-in Visual Studio Unit Testing tools (and with vstest.console.exe), so I'm pretty confident I'm using it correctly.</p>
  
  <p><strong>Update:</strong><br/>
  I replaced all references to Visual Studios test attributes in my <em>actual</em> test solution to use NUnits attributes. Now I'm getting the parameters! However, that leaves me still baffled as to why it doesn't work in my other bare-bones solution (with files shown above). </p>
  
  <p>I really only care about my real solution obviously, but I still want to understand why it's not working in my dummy solution. </p>
  
  <p>Also - I still am not sure where to find the <code>TestResultDirectory</code> path in NUnit.</p>