title: Odd problem unit testing internal classes with VS 2008
body: <p>I'm starting a project which is broken up over multiple VS projects and I was planning on having separate testing projects for each of the projects, so I'd have a solution like this:</p>
  
  <ul>
  <li>Project1</li>
  <li>Project1.Test</li>
  <li>Project2</li>
  <li>Project2.Test</li>
  </ul>
  
  <p>There are some <code>internal</code> classes which I want to have tested. So I used Visual Studio 2008 (SP1) to generate the test stubs in my test project and added the <code>InternalsVisibleTo</code>. But I get a red squiggly line under the internal class. If I compile I get a successful build, and looking at the test method the red squiggles are gone.</p>
  
  <p>But if I tough the file the squiggles come back and I have no intellisense on the internal class.</p>
  
  <p>The <code>internal</code> is within Project1 and the test is within Project1.Test. For completeness I decided to do the exact same manner of generating the test method but this time into Project2.Test, and this time it's shown to be completely working. I don't get red squiggles, I get intellisense, everything.</p>
  
  <p>I've tried deleting Project1.Test and recreating the test method, everything I can think of, but no matter what I do I can't get the internal to be <em>completely</em> visible within its paired Test project, only in the one which is <em>designed</em> to be for another project.</p>
  
  <p>It's doing my nut that it's not working!</p>