Skip to content

TestSourceAttribute constructor

Initializes a new instance of the TestSourceAttribute class.

csharp
public TestSourceAttribute(string memberName)
public TestSourceAttribute(string memberName)
parameterdescription
memberNameProvide the member name with the nameof keyword. [TestSource(nameof(MyClass.MyMethod)))

See Also