title: Errors in Unit Test project when including file from main project
body: <p>I am currently learning Unit Testing in Visual Studio 2015 but I am finding it hard to find good resources on the topic.</p>
  
  <p>I have set up a C++ Native Unit Test project in the same solution as my main project. I then Set up the main project as a reference in the test project.</p>
  
  <p>My issue is, when I include a file from the main project in the test, almost every single function is giving out compiler errors like these.</p>
  
  <p><a href="https://i.stack.imgur.com/swR5o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/swR5o.png" alt="Errors"></a></p>
  
  <p>This is the test class</p>
  
  <pre><code>#include "stdafx.h"
  #include "CppUnitTest.h"
  
  #include &lt;Windows.h&gt;
  #include &lt;Util\fileutil.h&gt;
  
  using namespace Microsoft::VisualStudio::CppUnitTestFramework;
  
  
  namespace EngineTest
  {       
  using namespace Engine;
  TEST_CLASS(EngineTests)
  {
  public:
  
      TEST_METHOD(UnitTestTest)
      {
          int i = 1;
          Assert::IsTrue(i == 1);
      }
  
      TEST_METHOD(FilePathSplit)
      {
          FileUtils testClass;
          std::string examplePath = "./FolderOne/FolderTwo/File.file";
          std::string exampleName = "File.file";
          std::set&lt;char&gt; delims{ '\\', '/' };
          std::string fileName = testClass.test_splitpath(examplePath, delims).back();
          Assert::AreSame(fileName, exampleName);
  
      }
  
  };
  }
  </code></pre>
  
  <p>The build works just fine, so I assume it is an issue with dependencies not being loaded in, I have tried adding all the headers into stdafx but that did not change anything.</p>
  
  <p>Any help is appreciated.</p>