title: How to Compare two objects in unit test?
body: <pre><code>public class Student
  {
      public string Name { get; set; }
      public int ID { get; set; }
  }
  </code></pre>
  
  <p>...</p>
  
  <pre><code>var st1 = new Student
  {
      ID = 20,
      Name = "ligaoren",
  };
  
  var st2 = new Student
  {
      ID = 20,
      Name = "ligaoren",
  };
  
  Assert.AreEqual&lt;Student&gt;(st1, st2);// How to Compare two object in Unit test?
  </code></pre>
  
  <p>How to Compare two collection in Unitest?</p>