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.2.0.0 (3.2.528.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#
[Test]
[Header("username", "password")]
[Row("jeff", "letmein")]
[Row("liz", "password")]
public void Test([BindObject] Credentials credentials)
{
    // ...
}

public class Credentials
{
    public string UserName;
    public string Password;
}

Inheritance Hierarchy

See Also