title: TFS Build Error : System.Diagnostics.Assert is not accessible in this context because it is 'Friend'
body: <p>I am trying to run selenium tests as part of build. I have a set-up build agent and test agent on same machine and but I am keep getting the following error </p>
  
  <pre><code>Z:\Builds\1\box\Tests\Sources\Test1\TestBrowser\SeleniumBrowser.vb (190): 'System.Diagnostics.Assert' is not accessible in this context because it is 'Friend'. 
  </code></pre>
  
  <p>I have a class which is implementing ISelenium it is failing where ever I am asserting. e.g         </p>
  
  <pre><code>If ControlFound &lt;&gt; True Then
          Assert.Fail("Expected : " &amp; pControlId &amp; "was not found")
  End If
  </code></pre>
  
  <p>I am running the scripts successfully in teamcity. It is just failing in TFS.</p>
  
  <p>Edited:
  Just figured out I am using nunit for VS to make tests to run from TFS. So when the build is running from TFS it is not recognising the nunit framework which is making the assert. Any Idea how to solve this. </p>