Search Results for

    Show / Hide Table of Contents

    ThrowsNothing Constraint

    ThrowsNothingConstraint asserts that the delegate passed as its argument does not throw an exception.

    Constructor

    ThrowsNothingConstraint()
    

    Syntax

    Throws.Nothing
    

    Example of Use

    Assert.That(() => SomeMethod(actual), Throws.Nothing);
    
    • 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