Using the Visual Studio Unit Testing Framework, I'm looking at two options:
Assert.AreEqual(myObject.GetType(), typeof(MyObject));
and
Assert.IsInstanceOfType(myObject, typeof(MyObject));
Is there a difference between these two options? Is one more "correct" than the other?
What is the standard way of doing this?