title: Why does Assert.AreEqual(1.0, double.NaN, 1.0) pass?
body: <p>Short question, why does <code>Assert.AreEqual(1.0, double.NaN, 1.0)</code> pass? Whereas <code>Assert.AreEqual(1.0, double.NaN)</code> fails.</p>
  
  <p>Is it a bug in MSTest (Microsoft.VisualStudio.QualityTools.UnitTestFramework) or am I missing something here?</p>
  
  <p>Best regards, Egil.</p>
  
  <hr>
  
  <p>Update: Should probably add, that the reason behind my question is, that I have a bunch of unit tests that unfortunately passed due to the result of some linear algebraic matrix operation being NaN or (+/-)Infinity. The unit tests are fine, but since Assert.AreEqual on doubles with a delta will pass when actual or/and expected are NaN or Infinity, I was left to believe that the code I was testing was correct.</p>