OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
OpenSim.Tests.Common.TestHelpers Class Reference

Static Public Member Functions

static bool AssertThisDelegateCausesArgumentException (TestDelegate d)
 
static void InMethod ()
 A debugging method that can be used to print out which test method you are in More...
 
static void EnableLogging ()
 
static void DisableLogging ()
 Disable logging whilst running the tests. More...
 
static UUID ParseStem (string stem)
 Parse a UUID stem into a full UUID. More...
 
static UUID ParseTail (int tail)
 Parse tail section into full UUID. More...
 
static UUID ParseTail (string stem)
 Parse a UUID tail section into a full UUID. More...
 

Detailed Description

Definition at line 37 of file TestHelpers.cs.

Member Function Documentation

static bool OpenSim.Tests.Common.TestHelpers.AssertThisDelegateCausesArgumentException ( TestDelegate  d)
inlinestatic

Definition at line 71 of file TestHelpers.cs.

static void OpenSim.Tests.Common.TestHelpers.DisableLogging ( )
inlinestatic

Disable logging whilst running the tests.

Remember, if a regression test throws an exception before completing this will not be invoked if it's at the end of the test. TODO: Always invoke this after every test - probably need to make all test cases inherit from a common TestCase class where this can be done.

Definition at line 110 of file TestHelpers.cs.

static void OpenSim.Tests.Common.TestHelpers.EnableLogging ( )
inlinestatic

Definition at line 95 of file TestHelpers.cs.

static void OpenSim.Tests.Common.TestHelpers.InMethod ( )
inlinestatic

A debugging method that can be used to print out which test method you are in

Definition at line 88 of file TestHelpers.cs.

static UUID OpenSim.Tests.Common.TestHelpers.ParseStem ( string  stem)
inlinestatic

Parse a UUID stem into a full UUID.

The fragment will come at the start of the UUID. The rest will be 0s

Returns
Parameters
fragA UUID fragment that will be parsed into a full UUID. Therefore, it can only contain cahracters which are valid in a UUID, except for "-" which is currently only allowed if a full UUID is given as the 'fragment'.

Definition at line 128 of file TestHelpers.cs.

static UUID OpenSim.Tests.Common.TestHelpers.ParseTail ( int  tail)
inlinestatic

Parse tail section into full UUID.

Parameters
tail
Returns

Definition at line 140 of file TestHelpers.cs.

Here is the caller graph for this function:

static UUID OpenSim.Tests.Common.TestHelpers.ParseTail ( string  stem)
inlinestatic

Parse a UUID tail section into a full UUID.

The fragment will come at the end of the UUID. The rest will be 0s

Returns
Parameters
fragA UUID fragment that will be parsed into a full UUID. Therefore, it can only contain cahracters which are valid in a UUID, except for "-" which is currently only allowed if a full UUID is given as the 'fragment'.

Definition at line 157 of file TestHelpers.cs.


The documentation for this class was generated from the following file: