title: Assert.AreEqual - Null vs Empty String
body: <p>Take the following example:</p>
  
  <pre><code>string x = null;
  var y = String.Empty;
  Assert.AreEqual(x, y);             // test fails!
  Assert.AreEqual(x ?? "", y ?? ""); // passes, but ugly!
  </code></pre>
  
  <p>I understand that null and empty string aren't the same but for my particular application these are basically the same. My question is - are there any shortcuts that will treat null and empty string the same way? Otherwise I am faced with using the null coalescing operator all over (a bit ugly!)</p>
  
  <p><strong>Background</strong></p>
  
  <p>For a background on where this question comes from, I'm writing integration tests for a project. Basically I'm saving values to a database, then loading them again and checking that the two match. Some values, when saved are empty strings, but when loaded via EF they are coming back as null values. This causes a number of my integration test to fail.</p>
  
  <p><strong>EDIT/NOTE</strong> - The values I am using for testing are randomized. That means sometimes the value will be empty but other times they will be filled in. That in mind, I would have to use the null coalescent on every single string comparison (hence the question of an abbreviated way of doing this).</p>