Search Results for

    Show / Hide Table of Contents

    Assert.DoesNotThrow

    Assert.DoesNotThrow verifies that the delegate provided as an argument does not throw an exception. See Assert.DoesNotThrowAsync for asynchronous code.

    void Assert.DoesNotThrow(TestDelegate code);
    void Assert.DoesNotThrow(TestDelegate code,
                             string message, params object[] params);
    

    See Also

    • Assert.Throws
    • ThrowsConstraint
    • 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