title: Correct way to unit test the type of an object
body: <p>Using the Visual Studio Unit Testing Framework, I'm looking at two options:</p>
  
  <pre><code>Assert.AreEqual(myObject.GetType(), typeof(MyObject));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Assert.IsInstanceOfType(myObject, typeof(MyObject));
  </code></pre>
  
  <p>Is there a difference between these two options? Is one more "correct" than the other? </p>
  
  <p>What is the standard way of doing this?</p>