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.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
[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
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
