Table of Contents

Class MemberTestAttribute

Namespace
Heleonix.Testing.NUnit.Aaa
Assembly
Heleonix.Testing.NUnit.dll

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
ISimpleTestBuilder
IApplyToContext
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 IMethodInfo

The method.

suite Test

The suite.

Returns

TestMethod

The test method.

See Also