title: .NET Core : NUnit won't execute SetUp
body: <p>NUnit won't execute the SetUp method unless i call it manually. Additionally when i add SetUp() to my test it seems i also have an issue with the test server because i get "StatusCode: 204, ReasonPhrase: 'No Content'" in the response, but the controller works fine if i execute it. I'm using .NET Core 1.1 and NUnit 3.6.1.</p>
  
  <p>Solution is here <a href="https://github.com/Narcil/NUnitMCV" rel="nofollow noreferrer">https://github.com/Narcil/NUnitMCV</a></p>
  
  <p>My test class:</p>
  
  <pre><code>[TestFixture]
  public class FrontendControllerTests : AbstractFrontendTestFixtures
  {
      [Test]
      public async Task FrontendAppSettingsTest()
      {
          var response = await _client.GetAsync("/api/values");
          var value = JsonConvert.DeserializeObject&lt;string&gt;(await response.Content.ReadAsStringAsync());
  
          Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
          Assert.IsTrue(value.Equals("Some FrontendValue"));
      }
  
  }
  </code></pre>
  
  <p>My abstract class</p>
  
  <pre><code>public abstract class AbstractFrontendTestFixtures
  {
      protected HttpClient _client;
      protected TestServer _server;
  
      [SetUp]
      protected void SetUp()
      {
          _server = new TestServer(new WebHostBuilder()
              .UseStartup&lt;Frontend.Startup&gt;()
              .UseEnvironment("Testing"));
          _client = _server.CreateClient();
      }
  
      [TearDown]
      protected void TearDown()
      {
          _client.Dispose();
          _server.Dispose();
      }
  }
  </code></pre>