`
Search Results for

    Show / Hide Table of Contents

    Assert.IsNotInstanceOf

    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[] params);
    Assert.IsNotInstanceOf<T>(object actual);
    Assert.IsNotInstanceOf<T>(object actual,
                              string message, params object[] params);
    

    See Also

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