Search Results for

    Show / Hide Table of Contents

    ClassicAssert.IsNotInstanceOf

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

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

    See Also

    • Type Constraints
    • Edit this page
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0