AuthorAttribute
Provides the author of a test or test fixture.
using System;
using System.
Runtime.
CompilerServices;
namespace NUnit.
Framework
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
[
System.
Runtime.
CompilerServices.
Nullable(
0)]
[
AttributeUsage(
AttributeTargets.
Assembly |
AttributeTargets.
Class |
AttributeTargets.
Method,
AllowMultiple =
true,
Inherited =
false)]
public class AuthorAttribute :
PropertyAttribute
{
public AuthorAttribute(
string name)
:
base(
"Author",
name)
{
}
public AuthorAttribute(
string name,
string email)
:
base(
"Author",
name +
" <" +
email +
">")
{
}
}
}