Skip to content

Assert.IsNotInstanceOf

jnm2 edited this page Jun 14, 2017 · 5 revisions

Assert.IsNotInstanceOf succeeds if the object provided as an actual value is not an instance of the expected type.

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

See also...

Clone this wiki locally