title: Can not resolve symbol of mocked object
body: <p>So to learn more about unit tests and mocking i created the following simple interface which i want to mock and test in my unit test:</p>
  
  <pre><code>namespace TestProjekt
  {
      public interface ICsvFile
      {
          string FileName { get; }
  
          int GetFileSize();
      }
  }
  </code></pre>
  
  <p>and the a test using NUnit and Moq</p>
  
  <pre><code>namespace NUnitTests
  {
      using Moq;
      using NUnit.Framework;
      using TestProjekt;
  
      [TestFixture]
      public class UnitTests1
      {
  
          private const string FILENAME = "0030001744_14224429_valuereport_20140527000012_1104.csv";
  
  
          private const int FILESIZE = 155;
  
          [Test]
          public void ExampleTest()
          {
              var file = new Mock&lt;ICsvFile&gt;();
              file.Setup(m =&gt; m.GetFileSize()).Returns(FILESIZE);
              file.SetupGet(m =&gt; m.FileName).Returns(FILENAME);
  
              Assert.AreEqual(FILENAME, file.FileName);
              Assert.AreEqual(FILESIZE, file.GetFileSize);
          }
      }
  }
  </code></pre>
  
  <p>I made this based on a <a href="http://www.agile-code.com/blog/mocking-with-moq/" rel="nofollow">Tutorial i found online and quite interesting</a>. The Problem is, that Visual Studio cant resolve the Method and Property or anything else i <code>setup</code> on the mocked object. </p>
  
  <p>All dlls are referenced correctly. It must be a super simply thing but i just cant figure it out. Thanks in advance!</p>