Below is a quick reference for each of the different Zanebug attributes:
Table 6. Attributes Quick Reference
| Attribute | Properties | Description |
|---|---|---|
| TestFixture | None | A class-level attribute that specifies a test class containing a group of Tests |
| IsMultiThreaded | Executes each Test in the TestFixture within its own asynchronous thread. | |
| Test | A method-level attribute that specifies a Test to be run | |
| Category | Specifies which category a Test belongs to | |
| Description | Provides a description of the Test | |
| ExpectedException | None | A method-level attribute that specifies an exception that should be thrown by a Test |
| Ignore | None | A method-level attribute that tells the test engine to ignore this test |
| MaxKMemory | None | A method-level attribute that tells the test engine what the maximum amount of memory is for this test to consume |
| MinOperationsPerSecond | None | A method-level attribute that specifies how many times the Test should be able to run in 1 second |
| Repeat | None | A class or method-level attribute (applies to both TestFixtures and Tests). Specifies how many times the Test or TestFixture should be repeated |
| RollbackTransaction | None | A method-level attribute that specifies the test should run in a distributed COM+ Transaction and automatically rollback when the test finishes. |
| SetUp | None | A method-level attribute that specifies setup operations for a TestFixture or Test |
| TearDown | None | A method-level attribute that specifies teardown operations for a TestFixture or Test |
| Transaction | None | A method-level attribute that specifies the test should run in a distributed COM+ Transaction. If the test passes, the transaction commits. If the test fails, the transaction aborts and rolls back. |