title: Comparing two List<MyClass>: How to find out difference?
body: <p>I used to compare lists like this, but it returns false in a test:</p>
  
  <pre><code>Assert.IsTrue(expected.SequenceEquals(actual));
  </code></pre>
  
  <p>And tried converting to json and it worked:</p>
  
  <pre><code>Assert.AreEqual(expected.ToJson(), actual.ToJson());
  </code></pre>
  
  <p>Values seems to be equal, what could be different? How to find out what is different in the lists?</p>
  
  <p><strong>Updated:</strong> </p>
  
  <p>My class:</p>
  
  <pre><code>public class Department
  {
      [BsonId]
      public ObjectId Id { get; set; }    
      public string Name { get; set; }            
  
      public override string ToString()
      {
          return Id.ToString();
      }
  }
  </code></pre>