title: C# XUnit Assert.Equal failing when comparing var and int
body: <p>I have this snippet of test code: </p>
  
  <pre><code>public void Test () {
      var expected = 10;
      int actual = 10;
      Assert.Equal(expected, actual);    //Failing
  }
  </code></pre>
  
  <p>I understand that C#s var is implicitly typed, so it is recognized as an int during compile time; they should both be Int32. Would it not be comparing the values?</p>
  
  <p>I also read that the <code>Equal</code> method compares objects; would this affect the way it compares the two primitive types? </p>