Search Results for

    Show / Hide Table of Contents

    NonTestAssembly

    This is an assembly-level attribute, which may be used to specify that even though the assembly refers to NUnit it does not contain any tests. This attribute can be used in connection with the command line option --skipnontestassemblies of the console to skip assemblies without failing.

    Example

    The following code, which might be placed in AssemblyInfo.cs, specifies that the assembly does not contain any tests.

    [assembly: NonTestAssembly]
    

    See Also

    • --skipnontestassemblies in Console Command Line
    • 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