Search Results for

    Show / Hide Table of Contents

    Assert.IsInstanceOf

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

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