Class MemberTestAttribute
Represents the attribute for testing of compononts' members, like methods, constructors, properties.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class MemberTestAttribute : TestAttribute, ISimpleTestBuilder, IApplyToContext
- Inheritance
-
MemberTestAttribute
- Implements
-
ISimpleTestBuilderIApplyToContext
- Inherited Members
Constructors
MemberTestAttribute()
public MemberTestAttribute()
Properties
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
- string
The name.
Properties
Gets the properties.
protected override IDictionary<string, object> Properties { get; }
Property Value
- IDictionary<string, object>
The properties.
TestName
Gets the test name.
protected override string TestName { get; }
Property Value
- string
The test name.
Methods
ApplyToContext(TestExecutionContext)
public void ApplyToContext(TestExecutionContext context)
Parameters
context
TestExecutionContext
BuildFrom(IMethodInfo, Test)
Builds a test method.
public override TestMethod BuildFrom(IMethodInfo method, Test suite)
Parameters
method
IMethodInfoThe method.
suite
TestThe suite.
Returns
- TestMethod
The test method.