title: How can I run tests in my build that are under the application project, not a test project?
body: <p>I inherited the joy of creating a build for a solution has test files in the application project, not in a test project. </p>
  
  <pre><code>MySolution 
      |__MyProject
            |__MyClass.cs
            |__MyClassTest.cs
  </code></pre>
  
  <p>All of the builds I've created previously have had a test project and worked fine with the test task in VSTS. As there is no test assembly, the tests aren't picked up and ran. </p>
  
  <p>I tried the project assembly as the "test assembly" in the build step, but that didn't work. How can I accomplish this? </p>
  
  <h2>Edit</h2>
  
  <p>Here are the logs, pointing to the assembly.</p>
  
  <pre><code>2018-07-31T18:31:25.0890193Z Starting test execution, please wait...
  2018-07-31T18:31:25.8549638Z NUnit Adapter 3.10.0.21: Test execution started
  2018-07-31T18:31:25.8558752Z Running all tests in C:\agent\_work\14\s\MyProject\bin\MyProject.dll
  2018-07-31T18:31:26.8625176Z NUnit couldn't find any tests in C:\agent\_work\14\s\MyProject\bin\MyProject.dll
  2018-07-31T18:31:26.9532542Z Running all tests in C:\agent\_work\14\s\MyProject\obj\Release\Before-PostSharp\MyProject.dll
  2018-07-31T18:31:26.9539232Z NUnit couldn't find any tests in C:\agent\_work\14\s\MyProject\obj\Release\Before-PostSharp\MyProject.dll
  2018-07-31T18:31:26.9691860Z Running all tests in C:\agent\_work\14\s\MyProject\obj\Release\MyProject.dll
  2018-07-31T18:31:26.9692255Z NUnit couldn't find any tests in C:\agent\_work\14\s\MyProject\obj\Release\MyProject.dll
  2018-07-31T18:31:26.9726008Z NUnit Adapter 3.10.0.21: Test execution complete
  </code></pre>