csUnit Class Library

TestAssemblyFixtureAttribute Class

Use the TestAssemblyFixtureAttribute to decorate a class which contains setup and teardown methods for an assembly. Apply it to only one class, as the runtime will pick up only the first one it finds. The setup method needs to be marked with the . The teardown method requires the .

For a list of all members of this type, see TestAssemblyFixtureAttribute Members.

System.Object
   System.Attribute
      csUnit.TestAssemblyFixtureAttribute

public class TestAssemblyFixtureAttribute : Attribute

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The setup method will be executed before any test in the assembly is executed. The teardown method will be executed after all tests in the assembly have been executed, regardless of the outcome of those tests.

Requirements

Namespace: csUnit

Assembly: csUnit (in csUnit.dll)

See Also

TestAssemblyFixtureAttribute Members | csUnit Namespace | SetUpAttribute | TearDownAttribute