| Annotation | Usage |
| Category | Specifies one or more categories for the test |
| Culture | Specifies cultures for which a test or fixture should be run |
| Indicates | Indicates that a test should be skipped unless explicitly run |
| Ignore | Indicates that a test shouldn't be run for some reason |
| MaxTime | Specifies the maximum time in milliseconds for a test case to succeed |
| OneTimeSetUp | Identifies methods to be called once prior to any child tests |
| OneTimeTearDown | Identifies methods to be called once after all child tests |
| Platform | Specifies platforms for which a test or fixture should be run |
| Random | Specifies generation of random values as arguments to a parameterized test |
| Repeat | Specifies that the decorated method should be executed multiple times |
| Retry | Causes a test to rerun if it fails, up to a maximum number of times |
| TearDown | Indicates a method of a TestFixture called immediately after each test method |
| Test | Marks a method of a TestFixture that represents a test |
| TestCase | Marks a method with parameters as a test and provides inline arguments |
| Timeout | Provides a timeout value in milliseconds for test cases |
| SetUp | Indicates a method of a TestFixture called immediately before each test method |
Saturday, June 13, 2020
Nunit : IMP Annotations
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment