7. Attribute Reference

Below is a quick reference for each of the different Zanebug attributes:

Table 6. Attributes Quick Reference

AttributePropertiesDescription
TestFixtureNoneA class-level attribute that specifies a test class containing a group of Tests
 IsMultiThreadedExecutes each Test in the TestFixture within its own asynchronous thread.
Test A method-level attribute that specifies a Test to be run
 CategorySpecifies which category a Test belongs to
 DescriptionProvides a description of the Test
ExpectedExceptionNoneA method-level attribute that specifies an exception that should be thrown by a Test
IgnoreNoneA method-level attribute that tells the test engine to ignore this test
MaxKMemoryNoneA method-level attribute that tells the test engine what the maximum amount of memory is for this test to consume
MinOperationsPerSecondNoneA method-level attribute that specifies how many times the Test should be able to run in 1 second
RepeatNoneA class or method-level attribute (applies to both TestFixtures and Tests). Specifies how many times the Test or TestFixture should be repeated
RollbackTransactionNoneA method-level attribute that specifies the test should run in a distributed COM+ Transaction and automatically rollback when the test finishes.
SetUpNoneA method-level attribute that specifies setup operations for a TestFixture or Test
TearDownNoneA method-level attribute that specifies teardown operations for a TestFixture or Test
TransactionNoneA 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.