Change the call to the next
Assert.IsInstanceOfType(0, typeof(int));
The first parameter is the test object, not the type of test object. skipping 0.GetType (), you said that "RunTimeType" is an instance of System.int, which is false. Under the covers, thes call only allows
if (typeof(int).IsInstanceOfType(0))
JaredPar Mar 26 '09 at 16:42 2009-03-26 16:42
source share