Assert.IsAssignableFrom

Chris edited this page Sep 5, 2016 · 2 revisions
Clone this wiki locally

Assert.IsAssignableFrom succeeds if the object provided may be assigned a value of the expected type.

Assert.IsAssignableFrom( Type expected, object actual );
Assert.IsAssignableFrom( Type expected, object actual, 
                         string message, params object[] parms );
Assert.IsAssignableFrom<T>( object actual );
Assert.IsAssignableFrom<T>( object actual, 
                            string message, params object[] parms );

See also...