NUnit.Framework.Internal.Test
The Test abstract class represents a test within the framework.
namespace NUnit.Framework.Internal
{
public abstract class Test : ITest, IXmlNodeBuilder, IComparable, IComparable<Test>
{
public string Id { get; set; }
public string Name { get; set; }
public string FullName { get; set; }
public string ClassName { get; }
public virtual string MethodName { get; }
public abstract object[] Arguments { get; }
public ITypeInfo TypeInfo { get; }
public IMethodInfo Method { get; set; }
public RunState RunState { get; set; }
public abstract string XmlElementName { get; }
public virtual string TestType { get; }
public virtual int TestCaseCount { get; }
public IPropertyBag Properties { get; }
public bool IsSuite { get; }
public abstract bool HasChildren { get; }
public ITest Parent { get; set; }
public abstract IList<ITest> Tests { get; }
public virtual object Fixture { get; set; }
public static string IdPrefix { get; set; }
public int Seed { get; set; }
public IMethodInfo[] SetUpMethods { get; set; }
public IMethodInfo[] TearDownMethods { get; set; }
protected Test(string name);
protected Test(string pathName, string name);
protected Test(ITypeInfo typeInfo);
protected Test(IMethodInfo method);
public abstract TestResult MakeTestResult();
public void ApplyAttributesToTest(ICustomAttributeProvider provider);
public void ApplyAttributesToTest(Type type);
public void ApplyAttributesToTest(IEnumerable<IApplyToTest> attributes);
public void MakeInvalid(string reason);
public void MakeInvalid(Exception exception, string reason);
public virtual TAttr[] GetCustomAttributes<TAttr>(bool inherit) where TAttr : class;
protected void PopulateTestNode(TNode thisNode, bool recursive);
protected IEnumerable<Type> GetNestedTypes(Type inner);
public TNode ToXml(bool recursive);
public abstract TNode AddToXml(TNode parentNode, bool recursive);
public int CompareTo(object obj);
public int CompareTo(Test other);
}
}