Asposecpplib
NUnit::Framework::TestContext Struct Reference

Context in which testing takes place. More...

Classes

class  TestAdapter
 TestAdapter adapts a Test for consumption by the user test code. More...
 

Public Member Functions

System::String get_TestDirectory ()
 Returns test directory. More...
 
System::SharedPtr< TestContext::TestAdapterget_Test ()
 Returns current test info. More...
 

Static Public Member Functions

static TestContextget_CurrentContext ()
 Returns current test context. More...
 

Detailed Description

Context in which testing takes place.

Member Function Documentation

◆ get_CurrentContext()

static TestContext* NUnit::Framework::TestContext::get_CurrentContext ( )
inlinestatic

Returns current test context.

Returns
Test context object pointer. No deletion is required.

◆ get_Test()

System::SharedPtr<TestContext::TestAdapter> NUnit::Framework::TestContext::get_Test ( )
inline

Returns current test info.

Returns
TestInfo object.

◆ get_TestDirectory()

System::String NUnit::Framework::TestContext::get_TestDirectory ( )
inline

Returns test directory.

Returns
Directory where testing executable is located, if available, or empty string.