title: Mock a method for test
body: <p>Trying to mock a method that is called within another method.</p>
  <pre><code>// code part
  public virtual bool hello(string name, int age)
  {
      string lastName = GetLastName();
  }
  
  public virtual string GetLastName() 
  {
      return &quot;xxx&quot;; 
  }
  
  // unit test part
  Mock&lt;Program&gt; p = new Mock&lt;Program&gt;();
  p.Setup(x =&gt; x.GetLastName()).Returns(&quot;qqq&quot;);
  </code></pre>
  <p>I want the method GetLastName to always return &quot;qqq&quot;.</p>