title: NSubstitute: Received() does not check string parameter when string comes from resource
body: <p>I use <a href="http://nsubstitute.github.io/" rel="nofollow">NSubstitute</a> for my <a href="http://www.nunit.org/" rel="nofollow">NUnit</a> tests and try to check if a method is called with the right values. Until know everything works fine. I have to localize the texts and so use resource strings for this. Every unit test now fails, that tests for a method to be recieved, where a string parameter contains a new line.</p>
  
  <p>Here is a simplified example:</p>
  
  
  
  <pre><code>// Old Version, where the unit test succeed
  public void CallWithText(ICallable callable)
  {
      callable.ShowText("Some text with a new\nline."); 
  }
  
  // New Version, where the unit test fails
  // Text of `Properties.Resources.TextWithNewLine` in the
  // Resources.resx is "Some text with a new
  // line."
  public void CallWithText(ICallable callable)
  {
      callable.ShowText(Properties.Resources.TextWithNewLine); 
  }
  
  [Test]
  public void CallWithText_WhenCalled_CallsCallable()
  {
      var caller = new Caller();
      var callable = Substitute.For&lt;ICallable&gt;();
  
      caller.CallWithText(callable);
  
      callable.Received(1).ShowText("Some text with a new\nline.");
  }
  </code></pre>
  
  <p>It seems for me, that there is a problem with the new line. Does anybody has a solution, because it is a mess to adapt all the unit tests.</p>