IGLib  1.5
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
UnitTests_ReporterMsg.ReporterTest Class Reference

This is a test class for ReporterTest and is intended to contain all ReporterTest Unit Tests /summary> More...

Public Member Functions

void MyTestInitialize ()
 
void DefaultReportStringConsoleTest ()
 A test for DefaultReportStringConsole /summary> More...
 
void DefaultReportStringConsoleBasTest ()
 A test for DefaultReportStringConsoleBas /summary> More...
 
void DefaultReportStringConsoleTimeStampTest ()
 A test for DefaultReportStringConsoleTimeStamp /summary> More...
 
void DefaultReportStringMessageBoxTest ()
 A test for DefaultReportStringMessageBox /summary> More...
 
void DefaultReserveReportMessageTest ()
 A test for DefaultReserveReportMessage /summary> More...
 
void DefaultReserveReportMessageTest1 ()
 Another test for DefaultReserveReportMessage checking also what happens if reporter throws test exception /summary> More...
 
void ReportTest ()
 A test for Report /summary> More...
 
void ReportErrorTest ()
 A test for ReportError /summary> More...
 
void ReportInfoTest ()
 A test for ReportInfo /summary> More...
 
void ReportWarningTest ()
 A test for ReportWarning /summary> More...
 
void ReviseExceptionTest ()
 A test for ReviseException /summary> More...
 

Static Public Member Functions

static void MyClassInitialize (TestContext testContext)
 

Properties

TestContext TestContext [get, set]
 Gets or sets the test context which provides information about and functionality for the current test run. /summary> More...
 

Private Member Functions

string checkExceptionMsg (string actualString, Exception ex)
 
string checkReport (string errorlocation, string errormessage, Exception exc, string reportedString, ReporterConsoleMsgbox reporter)
 
string checkExceptions (ApplicationException ex, Exception actualException, string messageaddition, Type newtype, bool sametype, bool keepmessage, bool oldasinner)
 

Static Private Member Functions

static string checkActualString (ReportType messagetype, string errorlocation, string errormessage, string actualString)
 
static void setReporter (ReporterConsoleMsgbox reporter, ReportType messagetype, bool useWriter)
 

Private Attributes

TestContext testContextInstance
 

Static Private Attributes

static string path
 
static StreamReader sr
 
static Random random
 
static int numReportTypes
 
static int numFirstRepType
 
static string message
 
static string actualString
 
static ReportType messagetype
 
static string errorlocation
 
static string errormessage
 
static bool expected
 
static bool actual
 
static int numStartedTests
 

Detailed Description

This is a test class for ReporterTest and is intended to contain all ReporterTest Unit Tests /summary>

Member Function Documentation

static void UnitTests_ReporterMsg.ReporterTest.MyClassInitialize ( TestContext  testContext)
inlinestatic
void UnitTests_ReporterMsg.ReporterTest.MyTestInitialize ( )
inline
void UnitTests_ReporterMsg.ReporterTest.DefaultReportStringConsoleTest ( )
inline
static string UnitTests_ReporterMsg.ReporterTest.checkActualString ( ReportType  messagetype,
string  errorlocation,
string  errormessage,
string  actualString 
)
inlinestaticprivate
void UnitTests_ReporterMsg.ReporterTest.DefaultReportStringConsoleBasTest ( )
inline

A test for DefaultReportStringConsoleBas /summary>

References UnitTests_ReporterMsg.ReporterTest.checkActualString(), and UnitTests_ReporterMsg.ReporterTest.numReportTypes.

void UnitTests_ReporterMsg.ReporterTest.DefaultReportStringConsoleTimeStampTest ( )
inline

A test for DefaultReportStringConsoleTimeStamp /summary>

References UnitTests_ReporterMsg.ReporterTest.checkActualString(), and UnitTests_ReporterMsg.ReporterTest.numReportTypes.

void UnitTests_ReporterMsg.ReporterTest.DefaultReportStringMessageBoxTest ( )
inline

A test for DefaultReportStringMessageBox /summary>

References UnitTests_ReporterMsg.ReporterTest.checkActualString(), and UnitTests_ReporterMsg.ReporterTest.numReportTypes.

void UnitTests_ReporterMsg.ReporterTest.DefaultReserveReportMessageTest ( )
inline

A test for DefaultReserveReportMessage /summary>

References UnitTests_ReporterMsg.ReporterTest.numReportTypes.

void UnitTests_ReporterMsg.ReporterTest.DefaultReserveReportMessageTest1 ( )
inline

Another test for DefaultReserveReportMessage checking also what happens if reporter throws test exception /summary>

References UnitTests_ReporterMsg.ReporterTest.numReportTypes.

void UnitTests_ReporterMsg.ReporterTest.ReportTest ( )
inline
string UnitTests_ReporterMsg.ReporterTest.checkExceptionMsg ( string  actualString,
Exception  ex 
)
inlineprivate
string UnitTests_ReporterMsg.ReporterTest.checkReport ( string  errorlocation,
string  errormessage,
Exception  exc,
string  reportedString,
ReporterConsoleMsgbox  reporter 
)
inlineprivate
static void UnitTests_ReporterMsg.ReporterTest.setReporter ( ReporterConsoleMsgbox  reporter,
ReportType  messagetype,
bool  useWriter 
)
inlinestaticprivate
void UnitTests_ReporterMsg.ReporterTest.ReportErrorTest ( )
inline
void UnitTests_ReporterMsg.ReporterTest.ReportInfoTest ( )
inline
void UnitTests_ReporterMsg.ReporterTest.ReportWarningTest ( )
inline
void UnitTests_ReporterMsg.ReporterTest.ReviseExceptionTest ( )
inline

A test for ReviseException /summary>

References UnitTests_ReporterMsg.ReporterTest.checkExceptions().

string UnitTests_ReporterMsg.ReporterTest.checkExceptions ( ApplicationException  ex,
Exception  actualException,
string  messageaddition,
Type  newtype,
bool  sametype,
bool  keepmessage,
bool  oldasinner 
)
inlineprivate

Member Data Documentation

TestContext UnitTests_ReporterMsg.ReporterTest.testContextInstance
private
string UnitTests_ReporterMsg.ReporterTest.path
staticprivate
StreamReader UnitTests_ReporterMsg.ReporterTest.sr
staticprivate
Random UnitTests_ReporterMsg.ReporterTest.random
staticprivate
int UnitTests_ReporterMsg.ReporterTest.numFirstRepType
staticprivate
string UnitTests_ReporterMsg.ReporterTest.actualString
staticprivate
ReportType UnitTests_ReporterMsg.ReporterTest.messagetype
staticprivate
string UnitTests_ReporterMsg.ReporterTest.errorlocation
staticprivate
string UnitTests_ReporterMsg.ReporterTest.errormessage
staticprivate
bool UnitTests_ReporterMsg.ReporterTest.expected
staticprivate
bool UnitTests_ReporterMsg.ReporterTest.actual
staticprivate
int UnitTests_ReporterMsg.ReporterTest.numStartedTests
staticprivate

Property Documentation

TestContext UnitTests_ReporterMsg.ReporterTest.TestContext
getset

Gets or sets the test context which provides information about and functionality for the current test run. /summary>


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