Discovery

Overview

Discovery is a helper class that provide methods for locating tests.

Discovery is one of central object in the EUnit, it is used to locate classes that can be tested and returns a ITest tree.

Note: Discovery is platform specific, some methods only available on proper platform.

Use case

You will use this class to build a test tree, for example:

    //locates all tests
    var Discovered := Discovery.DiscoverTests;
    //Executes tests
    Runner.RunTests(Discovered) withListener(new ConsoleTestListener);

Location

  • Reference:
    • EUnit.fx  Island, macOS
    • RemObjects.Elements.EUnit.dll  .NET, .NET Standard 2.0
    • remobjects.elements.eunit.jar  Cooper
    • libEUnit.fx  Toffee
  • Namespace: RemObjects.Elements.EUnit
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, macOS, Toffee

 

constructor  protected Cooper, Island, macOS

 

constructor

 

Discovery()

 

init()

 

Discovery()

 

Sub New()

DiscoverTests  virtual .NET, .NET Standard 2.0, Cooper-Plain, Island, macOS, Toffee

Locates all tests.

Note: This method requires reference to Context on Android

 

class method DiscoverTests: ITest

 

static ITest DiscoverTests()

 

static func DiscoverTests() -> ITest

 

static ITest DiscoverTests()

 

Shared Function DiscoverTests() As ITest

DiscoverTests (Context): ITest Cooper-Android

 

class method DiscoverTests(Instance: Context): ITest

 

static ITest DiscoverTests(Context Instance)

 

static func DiscoverTests(_ Instance: Context) -> ITest

 

static ITest DiscoverTests(Context Instance)

 

Shared Function DiscoverTests(Instance As Context) As ITest

Parameters:

  • Instance:

DiscoverTestsAsync (Context, Action<IAsyncResult<ITest>>, ICancelationToken): ITest Cooper-Android

Locatest all tests asynchronously and calls OnComleted block when finished.

Note: This method requires reference to Context on Android

 

class method DiscoverTestsAsync(Instance: Context; OnCompleted: Action<IAsyncResult<ITest>>; Token: ICancelationToken): ITest

 

static ITest DiscoverTestsAsync(Context Instance, Action<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

static func DiscoverTestsAsync(_ Instance: Context, _ OnCompleted: Action<IAsyncResult<ITest>>, _ Token: ICancelationToken) -> ITest

 

static ITest DiscoverTestsAsync(Context Instance, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Function DiscoverTestsAsync(Instance As Context, OnCompleted As Action (Of IAsyncResult<ITest>), Token As ICancelationToken) As ITest

Parameters:

  • Instance:
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

DiscoverTestsAsync (Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken): ITest  virtual .NET, .NET Standard 2.0, Cooper-Plain, Toffee

Locatest all tests asynchronously and calls OnComleted block when finished.

Note: This method requires reference to Context on Android

 

class method DiscoverTestsAsync(OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken): ITest

 

static ITest DiscoverTestsAsync(Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func DiscoverTestsAsync(_ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken) -> ITest

 

static ITest DiscoverTestsAsync(Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Function DiscoverTestsAsync(OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken) As ITest

Parameters:

  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAppDomain .NET, .NET Standard 2.0

Locates all tests inside specified AppDomain.

 

class method FromAppDomain(Value: AppDomain): ITest

 

static ITest FromAppDomain(AppDomain Value)

 

static func FromAppDomain(_ Value: AppDomain) -> ITest

 

Shared Function FromAppDomain(Value As AppDomain) As ITest

Parameters:

  • Value: AppDomain where search is performed.

FromAppDomainAsync .NET, .NET Standard 2.0

Locates all tests inside specified AppDomain asynchronously and calls OnComleted block when finished.

 

class method FromAppDomainAsync(Value: AppDomain; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAppDomainAsync(AppDomain Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAppDomainAsync(_ Value: AppDomain, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAppDomainAsync(Value As AppDomain, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: AppDomain where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAssemblies .NET, .NET Standard 2.0

Locates all tests in specified sequence of Assembly.

 

class method FromAssemblies(Value: IEnumerable<Assembly>): ITest

 

static ITest FromAssemblies(IEnumerable<Assembly> Value)

 

static func FromAssemblies(_ Value: IEnumerable<Assembly>) -> ITest

 

Shared Function FromAssemblies(Value As IEnumerable<Assembly>) As ITest

Parameters:

  • Value: Sequence of Assembly class where search is performed.

FromAssembliesAsync .NET, .NET Standard 2.0

Locates all tests in specified sequence of Assembly asynchronously and calls OnComleted block when finished.

 

class method FromAssembliesAsync(Value: IEnumerable<Assembly>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAssembliesAsync(IEnumerable<Assembly> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAssembliesAsync(_ Value: IEnumerable<Assembly>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAssembliesAsync(Value As IEnumerable<Assembly>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of Assembly class where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAssembly .NET, .NET Standard 2.0

Locates all tests in specified Assembly.

 

class method FromAssembly(Value: Assembly): ITest

 

static ITest FromAssembly(Assembly Value)

 

static func FromAssembly(_ Value: Assembly) -> ITest

 

Shared Function FromAssembly(Value As Assembly) As ITest

Parameters:

  • Value: Assembly where search is performed.

FromAssemblyAsync .NET, .NET Standard 2.0

Locates all tests in specified Assembly asynchronously and calls OnComleted block when finished.

 

class method FromAssemblyAsync(Value: Assembly; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAssemblyAsync(Assembly Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAssemblyAsync(_ Value: Assembly, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAssemblyAsync(Value As Assembly, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Assembly where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromContext Cooper-Android

 

class method FromContext(Value: Context): ITest

 

static ITest FromContext(Context Value)

 

static func FromContext(_ Value: Context) -> ITest

 

static ITest FromContext(Context Value)

 

Shared Function FromContext(Value As Context) As ITest

Parameters:

  • Value:

FromContextAsync Cooper-Android

 

class method FromContextAsync(Value: Context; OnCompleted: Action<IAsyncResult<ITest>>; Token: ICancelationToken)

 

static void FromContextAsync(Context Value, Action<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

static func FromContextAsync(_ Value: Context, _ OnCompleted: Action<IAsyncResult<ITest>>, _ Token: ICancelationToken)

 

static void FromContextAsync(Context Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromContextAsync(Value As Context, OnCompleted As Action (Of IAsyncResult<ITest>), Token As ICancelationToken)

Parameters:

  • Value:
  • OnCompleted:
  • Token:

FromModule  virtual Island, macOS, Toffee

 

class method FromModule: ITest

 

static ITest FromModule()

 

static func FromModule() -> ITest

 

Shared Function FromModule() As ITest

FromModuleAsync  virtual Toffee

 

static func FromModuleAsync(_ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

Parameters:

  • OnCompleted:
  • Token:

FromObject  virtual

Returns a test from specified object.

 

class method FromObject(Value: Object): ITest

 

static ITest FromObject(Object Value)

 

static func FromObject(_ Value: NSObject) -> ITest

 

static ITest FromObject(Object Value)

 

Shared Function FromObject(Value As Object) As ITest

Parameters:

  • Value: Object to be processed.

FromObjectAsync  virtual .NET, .NET Standard 2.0, Cooper, Toffee

Creates a test from specified object asynchronously and calls OnComleted block when finished.

 

class method FromObjectAsync(Value: Object; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromObjectAsync(Object Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromObjectAsync(_ Value: NSObject, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromObjectAsync(Object Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromObjectAsync(Value As Object, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Object to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromObjects  virtual

Locates all tests in sequence of objects.

 

class method FromObjects(Value: IEnumerable<Object>): ITest

 

static ITest FromObjects(IEnumerable<Object> Value)

 

static func FromObjects(_ Value: INSFastEnumeration<NSObject>) -> ITest

 

static ITest FromObjects(Iterable<Object> Value)

 

Shared Function FromObjects(Value As IEnumerable<Object>) As ITest

Parameters:

  • Value: Sequence of objects where search is performed.

FromObjectsAsync  virtual .NET, .NET Standard 2.0, Cooper, Toffee

Locates all tests in sequence of objects asynchronously and calls OnComleted block when finished.

 

class method FromObjectsAsync(Value: IEnumerable<Object>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromObjectsAsync(IEnumerable<Object> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromObjectsAsync(_ Value: INSFastEnumeration<NSObject>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromObjectsAsync(Iterable<Object> Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromObjectsAsync(Value As IEnumerable<Object>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of objects where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromPackage Cooper

 

static ITest FromPackage(Package Value)

Parameters:

  • Value:

FromPackageAsync Cooper

 

static void FromPackageAsync(Package Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value:
  • OnCompleted:
  • Token:

FromType (Class): ITest  virtual Cooper, Toffee

 

static func FromType(_ Value: Class) -> ITest

 

static ITest FromType(Class Value)

Parameters:

  • Value:

FromType (Type): ITest .NET, .NET Standard 2.0, Island, macOS

 

// .NET, .NET Standard 2.0, macOS
class method FromType(Value: Type): ITest
// Island
class method FromType(Value: Type): ITest

 

// .NET, .NET Standard 2.0, macOS
static ITest FromType(Type Value)
// Island
static ITest FromType(Type Value)

 

// .NET, .NET Standard 2.0, macOS
static func FromType(_ Value: Type) -> ITest
// Island
static func FromType(_ Value: Type) -> ITest

 

// .NET, .NET Standard 2.0, macOS
Shared Function FromType(Value As Type) As ITest
// Island
Shared Function FromType(Value As Type) As ITest

Parameters:

  • Value:

FromTypeAsync (Class, Action<IAsyncResult<ITest>>, ICancelationToken)  virtual Cooper, Toffee

Creates a test from specified type asynchronously and calls OnComleted block when finished.

 

static func FromTypeAsync(_ Value: Class, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromTypeAsync(Class Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value: Type to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypeAsync (Type, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken) .NET, .NET Standard 2.0

Creates a test from specified type asynchronously and calls OnComleted block when finished.

 

class method FromTypeAsync(Value: Type; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromTypeAsync(Type Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromTypeAsync(_ Value: Type, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromTypeAsync(Value As Type, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Type to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypes (Iterable<Class>): ITest  virtual Cooper, Toffee

 

static func FromTypes(_ Value: INSFastEnumeration<Class>) -> ITest

 

static ITest FromTypes(Iterable<Class> Value)

Parameters:

  • Value:

FromTypes (IEnumerable<Type>): ITest .NET, .NET Standard 2.0, Island, macOS

Locates all tests in sequence of type.

 

// .NET, .NET Standard 2.0, macOS
class method FromTypes(Value: IEnumerable<Type>): ITest
// Island
class method FromTypes(Value: IEnumerable<Type>): ITest

 

// .NET, .NET Standard 2.0, macOS
static ITest FromTypes(IEnumerable<Type> Value)
// Island
static ITest FromTypes(IEnumerable<Type> Value)

 

// .NET, .NET Standard 2.0, macOS
static func FromTypes(_ Value: IEnumerable<Type>) -> ITest
// Island
static func FromTypes(_ Value: IEnumerable<Type>) -> ITest

 

// .NET, .NET Standard 2.0, macOS
Shared Function FromTypes(Value As IEnumerable<Type>) As ITest
// Island
Shared Function FromTypes(Value As IEnumerable<Type>) As ITest

Parameters:

  • Value: Sequence of type where search is performed.

FromTypesAsync (Iterable<Class>, Action<IAsyncResult<ITest>>, ICancelationToken)  virtual Cooper, Toffee

Locates all tests in sequence of type asynchronously and calls OnComleted block when finished.

 

static func FromTypesAsync(_ Value: INSFastEnumeration<Class>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromTypesAsync(Iterable<Class> Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value: Sequence of type where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypesAsync (IEnumerable<Type>, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken) .NET, .NET Standard 2.0

Locates all tests in sequence of type asynchronously and calls OnComleted block when finished.

 

class method FromTypesAsync(Value: IEnumerable<Type>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromTypesAsync(IEnumerable<Type> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromTypesAsync(_ Value: IEnumerable<Type>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromTypesAsync(Value As IEnumerable<Type>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of type where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

 

DiscoverTests  virtual .NET, .NET Standard 2.0, Cooper-Plain, Island, macOS, Toffee

Locates all tests.

Note: This method requires reference to Context on Android

 

class method DiscoverTests: ITest

 

static ITest DiscoverTests()

 

static func DiscoverTests() -> ITest

 

static ITest DiscoverTests()

 

Shared Function DiscoverTests() As ITest

DiscoverTests (Context): ITest Cooper-Android

 

class method DiscoverTests(Instance: Context): ITest

 

static ITest DiscoverTests(Context Instance)

 

static func DiscoverTests(_ Instance: Context) -> ITest

 

static ITest DiscoverTests(Context Instance)

 

Shared Function DiscoverTests(Instance As Context) As ITest

Parameters:

  • Instance:

DiscoverTestsAsync (Context, Action<IAsyncResult<ITest>>, ICancelationToken): ITest Cooper-Android

Locatest all tests asynchronously and calls OnComleted block when finished.

Note: This method requires reference to Context on Android

 

class method DiscoverTestsAsync(Instance: Context; OnCompleted: Action<IAsyncResult<ITest>>; Token: ICancelationToken): ITest

 

static ITest DiscoverTestsAsync(Context Instance, Action<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

static func DiscoverTestsAsync(_ Instance: Context, _ OnCompleted: Action<IAsyncResult<ITest>>, _ Token: ICancelationToken) -> ITest

 

static ITest DiscoverTestsAsync(Context Instance, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Function DiscoverTestsAsync(Instance As Context, OnCompleted As Action (Of IAsyncResult<ITest>), Token As ICancelationToken) As ITest

Parameters:

  • Instance:
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

DiscoverTestsAsync (Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken): ITest  virtual .NET, .NET Standard 2.0, Cooper-Plain, Toffee

Locatest all tests asynchronously and calls OnComleted block when finished.

Note: This method requires reference to Context on Android

 

class method DiscoverTestsAsync(OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken): ITest

 

static ITest DiscoverTestsAsync(Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func DiscoverTestsAsync(_ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken) -> ITest

 

static ITest DiscoverTestsAsync(Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Function DiscoverTestsAsync(OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken) As ITest

Parameters:

  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAppDomain .NET, .NET Standard 2.0

Locates all tests inside specified AppDomain.

 

class method FromAppDomain(Value: AppDomain): ITest

 

static ITest FromAppDomain(AppDomain Value)

 

static func FromAppDomain(_ Value: AppDomain) -> ITest

 

Shared Function FromAppDomain(Value As AppDomain) As ITest

Parameters:

  • Value: AppDomain where search is performed.

FromAppDomainAsync .NET, .NET Standard 2.0

Locates all tests inside specified AppDomain asynchronously and calls OnComleted block when finished.

 

class method FromAppDomainAsync(Value: AppDomain; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAppDomainAsync(AppDomain Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAppDomainAsync(_ Value: AppDomain, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAppDomainAsync(Value As AppDomain, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: AppDomain where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAssemblies .NET, .NET Standard 2.0

Locates all tests in specified sequence of Assembly.

 

class method FromAssemblies(Value: IEnumerable<Assembly>): ITest

 

static ITest FromAssemblies(IEnumerable<Assembly> Value)

 

static func FromAssemblies(_ Value: IEnumerable<Assembly>) -> ITest

 

Shared Function FromAssemblies(Value As IEnumerable<Assembly>) As ITest

Parameters:

  • Value: Sequence of Assembly class where search is performed.

FromAssembliesAsync .NET, .NET Standard 2.0

Locates all tests in specified sequence of Assembly asynchronously and calls OnComleted block when finished.

 

class method FromAssembliesAsync(Value: IEnumerable<Assembly>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAssembliesAsync(IEnumerable<Assembly> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAssembliesAsync(_ Value: IEnumerable<Assembly>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAssembliesAsync(Value As IEnumerable<Assembly>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of Assembly class where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromAssembly .NET, .NET Standard 2.0

Locates all tests in specified Assembly.

 

class method FromAssembly(Value: Assembly): ITest

 

static ITest FromAssembly(Assembly Value)

 

static func FromAssembly(_ Value: Assembly) -> ITest

 

Shared Function FromAssembly(Value As Assembly) As ITest

Parameters:

  • Value: Assembly where search is performed.

FromAssemblyAsync .NET, .NET Standard 2.0

Locates all tests in specified Assembly asynchronously and calls OnComleted block when finished.

 

class method FromAssemblyAsync(Value: Assembly; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromAssemblyAsync(Assembly Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromAssemblyAsync(_ Value: Assembly, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromAssemblyAsync(Value As Assembly, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Assembly where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromContext Cooper-Android

 

class method FromContext(Value: Context): ITest

 

static ITest FromContext(Context Value)

 

static func FromContext(_ Value: Context) -> ITest

 

static ITest FromContext(Context Value)

 

Shared Function FromContext(Value As Context) As ITest

Parameters:

  • Value:

FromContextAsync Cooper-Android

 

class method FromContextAsync(Value: Context; OnCompleted: Action<IAsyncResult<ITest>>; Token: ICancelationToken)

 

static void FromContextAsync(Context Value, Action<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

static func FromContextAsync(_ Value: Context, _ OnCompleted: Action<IAsyncResult<ITest>>, _ Token: ICancelationToken)

 

static void FromContextAsync(Context Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromContextAsync(Value As Context, OnCompleted As Action (Of IAsyncResult<ITest>), Token As ICancelationToken)

Parameters:

  • Value:
  • OnCompleted:
  • Token:

FromModule  virtual Island, macOS, Toffee

 

class method FromModule: ITest

 

static ITest FromModule()

 

static func FromModule() -> ITest

 

Shared Function FromModule() As ITest

FromModuleAsync  virtual Toffee

 

static func FromModuleAsync(_ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

Parameters:

  • OnCompleted:
  • Token:

FromObject  virtual

Returns a test from specified object.

 

class method FromObject(Value: Object): ITest

 

static ITest FromObject(Object Value)

 

static func FromObject(_ Value: NSObject) -> ITest

 

static ITest FromObject(Object Value)

 

Shared Function FromObject(Value As Object) As ITest

Parameters:

  • Value: Object to be processed.

FromObjectAsync  virtual .NET, .NET Standard 2.0, Cooper, Toffee

Creates a test from specified object asynchronously and calls OnComleted block when finished.

 

class method FromObjectAsync(Value: Object; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromObjectAsync(Object Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromObjectAsync(_ Value: NSObject, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromObjectAsync(Object Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromObjectAsync(Value As Object, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Object to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromObjects  virtual

Locates all tests in sequence of objects.

 

class method FromObjects(Value: IEnumerable<Object>): ITest

 

static ITest FromObjects(IEnumerable<Object> Value)

 

static func FromObjects(_ Value: INSFastEnumeration<NSObject>) -> ITest

 

static ITest FromObjects(Iterable<Object> Value)

 

Shared Function FromObjects(Value As IEnumerable<Object>) As ITest

Parameters:

  • Value: Sequence of objects where search is performed.

FromObjectsAsync  virtual .NET, .NET Standard 2.0, Cooper, Toffee

Locates all tests in sequence of objects asynchronously and calls OnComleted block when finished.

 

class method FromObjectsAsync(Value: IEnumerable<Object>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromObjectsAsync(IEnumerable<Object> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromObjectsAsync(_ Value: INSFastEnumeration<NSObject>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromObjectsAsync(Iterable<Object> Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

 

Shared Sub FromObjectsAsync(Value As IEnumerable<Object>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of objects where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromPackage Cooper

 

static ITest FromPackage(Package Value)

Parameters:

  • Value:

FromPackageAsync Cooper

 

static void FromPackageAsync(Package Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value:
  • OnCompleted:
  • Token:

FromType (Class): ITest  virtual Cooper, Toffee

 

static func FromType(_ Value: Class) -> ITest

 

static ITest FromType(Class Value)

Parameters:

  • Value:

FromType (Type): ITest .NET, .NET Standard 2.0, Island, macOS

 

// .NET, .NET Standard 2.0, macOS
class method FromType(Value: Type): ITest
// Island
class method FromType(Value: Type): ITest

 

// .NET, .NET Standard 2.0, macOS
static ITest FromType(Type Value)
// Island
static ITest FromType(Type Value)

 

// .NET, .NET Standard 2.0, macOS
static func FromType(_ Value: Type) -> ITest
// Island
static func FromType(_ Value: Type) -> ITest

 

// .NET, .NET Standard 2.0, macOS
Shared Function FromType(Value As Type) As ITest
// Island
Shared Function FromType(Value As Type) As ITest

Parameters:

  • Value:

FromTypeAsync (Class, Action<IAsyncResult<ITest>>, ICancelationToken)  virtual Cooper, Toffee

Creates a test from specified type asynchronously and calls OnComleted block when finished.

 

static func FromTypeAsync(_ Value: Class, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromTypeAsync(Class Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value: Type to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypeAsync (Type, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken) .NET, .NET Standard 2.0

Creates a test from specified type asynchronously and calls OnComleted block when finished.

 

class method FromTypeAsync(Value: Type; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromTypeAsync(Type Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromTypeAsync(_ Value: Type, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromTypeAsync(Value As Type, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Type to be processed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypes (Iterable<Class>): ITest  virtual Cooper, Toffee

 

static func FromTypes(_ Value: INSFastEnumeration<Class>) -> ITest

 

static ITest FromTypes(Iterable<Class> Value)

Parameters:

  • Value:

FromTypes (IEnumerable<Type>): ITest .NET, .NET Standard 2.0, Island, macOS

Locates all tests in sequence of type.

 

// .NET, .NET Standard 2.0, macOS
class method FromTypes(Value: IEnumerable<Type>): ITest
// Island
class method FromTypes(Value: IEnumerable<Type>): ITest

 

// .NET, .NET Standard 2.0, macOS
static ITest FromTypes(IEnumerable<Type> Value)
// Island
static ITest FromTypes(IEnumerable<Type> Value)

 

// .NET, .NET Standard 2.0, macOS
static func FromTypes(_ Value: IEnumerable<Type>) -> ITest
// Island
static func FromTypes(_ Value: IEnumerable<Type>) -> ITest

 

// .NET, .NET Standard 2.0, macOS
Shared Function FromTypes(Value As IEnumerable<Type>) As ITest
// Island
Shared Function FromTypes(Value As IEnumerable<Type>) As ITest

Parameters:

  • Value: Sequence of type where search is performed.

FromTypesAsync (Iterable<Class>, Action<IAsyncResult<ITest>>, ICancelationToken)  virtual Cooper, Toffee

Locates all tests in sequence of type asynchronously and calls OnComleted block when finished.

 

static func FromTypesAsync(_ Value: INSFastEnumeration<Class>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

static void FromTypesAsync(Iterable<Class> Value, Action1<IAsyncResult<ITest>> OnCompleted, ICancelationToken Token)

Parameters:

  • Value: Sequence of type where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

FromTypesAsync (IEnumerable<Type>, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, ICancelationToken) .NET, .NET Standard 2.0

Locates all tests in sequence of type asynchronously and calls OnComleted block when finished.

 

class method FromTypesAsync(Value: IEnumerable<Type>; OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>; Token: ICancelationToken)

 

static void FromTypesAsync(IEnumerable<Type> Value, Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>> OnCompleted, ICancelationToken Token)

 

static func FromTypesAsync(_ Value: IEnumerable<Type>, _ OnCompleted: Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, _ Token: ICancelationToken)

 

Shared Sub FromTypesAsync(Value As IEnumerable<Type>, OnCompleted As Action<RemObjects.Elements.EUnit.IAsyncResult<RemObjects.Elements.EUnit.ITest>>, Token As ICancelationToken)

Parameters:

  • Value: Sequence of type where search is performed.
  • OnCompleted: Block that will be called when search completed.
  • Token: Token that can be used to terminate search.

 

constructor  protected Cooper, Island, macOS

 

constructor

 

Discovery()

 

init()

 

Discovery()

 

Sub New()