Defines names as aliases for the columns in an indexed data source such as those that have been populated by RowAttribute or ColumnAttribute.

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

Syntax

C#
public class HeaderAttribute : DataPatternAttribute
Visual Basic (Declaration)
Public Class HeaderAttribute _
	Inherits DataPatternAttribute

Remarks

The names may subsequently be used in data binding expressions in place of their corresponding column indices.

Examples

CopyC#
[TestFixture]
[Header("UserName", "Password")]
[Row("jeff", "letmein")]
[Row("liz", "password")]
public class CredentialsTest
{
    [Bind("UserName")]
    public string UserName;

    [Bind("Password")]
    public string Password;

    [Test]
    public void Test()
    {
        // ...
    }
}

Inheritance Hierarchy

See Also