ITest
Common interface supported by all representations
of a test. Only includes informational fields.
The Run method is specifically excluded to allow
for data-only representations of a test.
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace NUnit.Framework.Interfaces
{
[System.Runtime.CompilerServices.NullableContext(1)]
public interface ITest : IXmlNodeBuilder
{
string Id { get; }
string Name { get; }
string TestType { get; }
string FullName { get; }
[System.Runtime.CompilerServices.Nullable(2)]
string ClassName {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(2)]
string MethodName {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(2)]
ITypeInfo TypeInfo {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(2)]
IMethodInfo Method {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
RunState RunState { get; }
int TestCaseCount { get; }
IPropertyBag Properties { get; }
[System.Runtime.CompilerServices.Nullable(2)]
ITest Parent {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
bool IsSuite { get; }
bool HasChildren { get; }
IList<ITest> Tests { get; }
[System.Runtime.CompilerServices.Nullable(2)]
object Fixture {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(new byte[] {
1,
2
})]
object[] Arguments {
[return: System.Runtime.CompilerServices.Nullable(new byte[] {
1,
2
})]
get;
}
}
}