title: Access field in Mock
body: <p>I have a hard time to visualize this. </p>
  
  <p>Here is the scenario. </p>
  
  <p>My Unit Test </p>
  
  <pre><code>    public void AddStudentTest()
      {
          StudentService target = new StudentService (new Mock1(),new Mock2(), new Mock3(), new Mock4(), new Mock5());
          string name  = "Sample Name";
          int actual = 0;
          string[] userNames = new string[] {"Sample User Name" };
          string[] roleName = new string[] {"Sample Role" };
          target.AddStudent (name, userNames, roleNames);            
          Assert.IsNotNull(actual);
      }
  </code></pre>
  
  <p>I am testing a method in Mock 3. Unfortunately, the method return type is VOID. I need to check if the transaction is successful or not. I added a field resultFlag on this method "AddStudent" but how can I access this from unit test?</p>