Associates the name of the type under test with a test fixture, test method, test parameter or other test component.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public class TestsOnAttribute : MetadataPatternAttribute
Visual Basic (Declaration)
Public Class TestsOnAttribute _
	Inherits MetadataPatternAttribute

Remarks

Specifying the type under test helps to describe which type is primarily being exercised by the test. This way we can quickly identify which tests to run after making changes to a given type. We can also use the TestsOn metadata as a filter so that we can tell the test runner to only run tests about a particular type.

This attribute can be repeated multiple times if there are multiple types.

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Gallio.Framework.Pattern..::.PatternAttribute
      Gallio.Framework.Pattern..::.MetadataPatternAttribute
        MbUnit.Framework..::.TestsOnAttribute

See Also