using System;
using System.Collections.Generic;
using NUnit.Framework.Interfaces;
namespace UnityEditor.TestTools.TestRunner.Api
{
///
/// ```ITestAdaptor``` is a representation of a node in the test tree implemented as a wrapper around the [NUnit](http://www.nunit.org/) [ITest](https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Interfaces/ITest.cs) interface.
///
public interface ITestAdaptor
{
///
/// The ID of the test tree node. The ID can change if you add new tests to the suite. Use UniqueName, if you want to have a more permanent point of reference.
///
string Id { get; }
///
/// The name of the test. E.g.,```MyTest```.
///
string Name { get; }
///
/// The full name of the test. E.g., ```MyNamespace.MyTestClass.MyTest```.
///
string FullName { get; }
///
/// The total number of test cases in the node and all sub-nodes.
///
int TestCaseCount { get; }
///
/// Whether the node has any children.
///
bool HasChildren { get; }
///
/// True if the node is a test suite/fixture, false otherwise.
///
bool IsSuite { get; }
///
/// The child nodes.
///
IEnumerable Children { get; }
///
/// The parent node, if any.
///
ITestAdaptor Parent { get; }
///
/// The test case timeout in milliseconds. Note that this value is only available on TestFinished.
///
int TestCaseTimeout { get; }
///
/// The type of test class as an ```NUnit``` . If the node is not a test class, then the value is null.
///
ITypeInfo TypeInfo { get; }
///
/// The Nunit of the test method. If the node is not a test method, then the value is null.
///
IMethodInfo Method { get; }
///
/// The array of arguments that the test method/fixture will be invoked with.
///
object[] Arguments { get; }
///
/// An array of the categories applied to the test or fixture.
///
string[] Categories { get; }
///
/// Returns true if the node represents a test assembly, false otherwise.
///
bool IsTestAssembly { get; }
///
/// The run state of the test node. Either ```NotRunnable```, ```Runnable```, ```Explicit```, ```Skipped```, or ```Ignored```.
///
RunState RunState { get; }
///
/// The description of the test.
///
string Description { get; }
///
/// The skip reason. E.g., if ignoring the test.
///
string SkipReason { get; }
///
/// The ID of the parent node.
///
string ParentId { get; }
///
/// The full name of the parent node.
///
string ParentFullName { get; }
///
/// A unique generated name for the test node. E.g., ```Tests.dll/MyNamespace/MyTestClass/[Tests][MyNamespace.MyTestClass.MyTest]```.
///
string UniqueName { get; }
///
/// A unique name of the parent node. E.g., ```Tests.dll/MyNamespace/[Tests][MyNamespace.MyTestClass][suite]```.
///
string ParentUniqueName { get; }
///
/// The child index of the node in its parent.
///
int ChildIndex { get; }
///
/// The mode of the test. Either **Edit Mode** or **Play Mode**.
///
TestMode TestMode { get; }
}
}