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.FrameworkAssembly: 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
[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
System..::.Object
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.DataPatternAttribute
MbUnit.Framework..::.HeaderAttribute
System..::.Attribute
Gallio.Framework.Pattern..::.PatternAttribute
Gallio.Framework.Pattern..::.DecoratorPatternAttribute
Gallio.Framework.Pattern..::.DataPatternAttribute
MbUnit.Framework..::.HeaderAttribute
