Asposecpplib
System::TestToolsExt Struct Reference

Common functions to be used by testing translation. More...

Classes

struct  TestMethodInfo
 Information on test method. More...
 

Static Public Member Functions

static bool IsTest (const char *name_space, const char *class_name, const char *method_name)
 Checks if test method exists. More...
 
static bool IsTest (const char *class_name, const char *method_name)
 Checks if test method exists. More...
 
static bool GetNamespace (const char *class_name, const char *method_name, std::string &name_space)
 Retrieves namespace of specified test. More...
 
static void RegisterTest (const char *name_space, const char *class_name, const char *method_name)
 Adds test information to registry. More...
 

Detailed Description

Common functions to be used by testing translation.

Member Function Documentation

◆ GetNamespace()

static bool System::TestToolsExt::GetNamespace ( const char *  class_name,
const char *  method_name,
std::string &  name_space 
)
inlinestatic

Retrieves namespace of specified test.

Parameters
class_nameClass to look for.
method_nameMethod to look for.
name_spaceVariable to put namespace name into, if found.
Returns
True if test method is found, false otherwise.

◆ IsTest() [1/2]

static bool System::TestToolsExt::IsTest ( const char *  class_name,
const char *  method_name 
)
inlinestatic

Checks if test method exists.

Parameters
class_nameClass to look for.
method_nameMethod to look for.
Returns
True if test method is registered, false otherwise.

◆ IsTest() [2/2]

static bool System::TestToolsExt::IsTest ( const char *  name_space,
const char *  class_name,
const char *  method_name 
)
inlinestatic

Checks if test method exists.

Parameters
name_spaceNamespace to look for.
class_nameClass to look for.
method_nameMethod to look for.
Returns
True if test method is registered, false otherwise.

◆ RegisterTest()

static void System::TestToolsExt::RegisterTest ( const char *  name_space,
const char *  class_name,
const char *  method_name 
)
inlinestatic

Adds test information to registry.

Parameters
name_spaceNamespace name.
class_nameClass name.
method_nameMethod name.