OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Testing.TTestCommon Class Reference

This is a testing program for Ict.Common.dll. More...

Public Member Functions

void Init ()
 init the test More...
 
void TestDates ()
 test dates More...
 
void TestDateParsing ()
 test the parsing of a date, needed eg. for gl batch import More...
 
void TestNumberParsing ()
 Test our unambiguous number parsing for 'LooksLikeFloat' More...
 
void TestStringHelperFormatCurrency ()
 test formatting currency values More...
 
void TestStringHelperCurrencyFromCode ()
 test formatting currency using currency code More...
 
void TestStringHelperCSVList ()
 test csv operations (comma separated value lists) More...
 
void TestMultiLineCSV ()
 test the parsing of CSV values that spread across multiple lines More...
 
void TestStringHelperStrArrayToString ()
 test the StrArrayToString Method More...
 
void TestStringHelperStrCollToString ()
 test the StrCollToString Method More...
 
void TestVariantDates ()
 test TVariant and dates More...
 
void TestVariantComposite ()
 test TVariant composites More...
 
void TestVariantCurrencies ()
 test TVariant and currencies More...
 
void TestListSeparator ()
 test currentculture and list separators More...
 
void TestAmountToWords ()
 test printing amounts as words More...
 
void TestFileVersion ()
 test parsing file versions More...
 
void TestErrorCodes ()
 Tests for Error Codes. More...
 
void TestErrorCodesUniqueAcrossOpenPetra ()
 Tests for the uniquness of Error Codes across OpenPetra. More...
 
void TestGettext_GetPluralString_ExpectSingularPluralToWork ()
 Tests the Catalog.GetPluralString Method to ensure that it always returns either the correct singluar or plural string - irrespective of the language resource file being loaded, or not. More...
 

Static Public Attributes

const String ERR_TESTONLY1 = "TEST.99999V"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY2 = "TEST.99998V"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY7 = "TEST.99994V"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY3 = "TEST.99997V"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY4 = "TEST.99996N"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY5 = "TEST.99995x"
 Test-only Error Code for TestErrorCodes Method. More...
 
const String ERR_TESTONLY6 = "TEST.99995x"
 Test-only Error Code for TestErrorCodes Method. More...
 

Detailed Description

This is a testing program for Ict.Common.dll.

Member Function Documentation

◆ Init()

void Ict.Common.Testing.TTestCommon.Init ( )
inline

init the test

◆ TestAmountToWords()

void Ict.Common.Testing.TTestCommon.TestAmountToWords ( )
inline

test printing amounts as words

◆ TestDateParsing()

void Ict.Common.Testing.TTestCommon.TestDateParsing ( )
inline

test the parsing of a date, needed eg. for gl batch import

◆ TestDates()

void Ict.Common.Testing.TTestCommon.TestDates ( )
inline

test dates

◆ TestErrorCodes()

void Ict.Common.Testing.TTestCommon.TestErrorCodes ( )
inline

Tests for Error Codes.

◆ TestErrorCodesUniqueAcrossOpenPetra()

void Ict.Common.Testing.TTestCommon.TestErrorCodesUniqueAcrossOpenPetra ( )
inline

Tests for the uniquness of Error Codes across OpenPetra.

Will throw an Ict.Common.EDuplicateErrorCodeException in case a duplicate Error Code exists!!!

◆ TestFileVersion()

void Ict.Common.Testing.TTestCommon.TestFileVersion ( )
inline

test parsing file versions

◆ TestGettext_GetPluralString_ExpectSingularPluralToWork()

void Ict.Common.Testing.TTestCommon.TestGettext_GetPluralString_ExpectSingularPluralToWork ( )
inline

Tests the Catalog.GetPluralString Method to ensure that it always returns either the correct singluar or plural string - irrespective of the language resource file being loaded, or not.

◆ TestListSeparator()

void Ict.Common.Testing.TTestCommon.TestListSeparator ( )
inline

test currentculture and list separators

◆ TestMultiLineCSV()

void Ict.Common.Testing.TTestCommon.TestMultiLineCSV ( )
inline

test the parsing of CSV values that spread across multiple lines

◆ TestNumberParsing()

void Ict.Common.Testing.TTestCommon.TestNumberParsing ( )
inline

Test our unambiguous number parsing for 'LooksLikeFloat'

◆ TestStringHelperCSVList()

void Ict.Common.Testing.TTestCommon.TestStringHelperCSVList ( )
inline

test csv operations (comma separated value lists)

◆ TestStringHelperCurrencyFromCode()

void Ict.Common.Testing.TTestCommon.TestStringHelperCurrencyFromCode ( )
inline

test formatting currency using currency code

◆ TestStringHelperFormatCurrency()

void Ict.Common.Testing.TTestCommon.TestStringHelperFormatCurrency ( )
inline

test formatting currency values

◆ TestStringHelperStrArrayToString()

void Ict.Common.Testing.TTestCommon.TestStringHelperStrArrayToString ( )
inline

test the StrArrayToString Method

◆ TestStringHelperStrCollToString()

void Ict.Common.Testing.TTestCommon.TestStringHelperStrCollToString ( )
inline

test the StrCollToString Method

◆ TestVariantComposite()

void Ict.Common.Testing.TTestCommon.TestVariantComposite ( )
inline

test TVariant composites

◆ TestVariantCurrencies()

void Ict.Common.Testing.TTestCommon.TestVariantCurrencies ( )
inline

test TVariant and currencies

◆ TestVariantDates()

void Ict.Common.Testing.TTestCommon.TestVariantDates ( )
inline

test TVariant and dates

Member Data Documentation

◆ ERR_TESTONLY1

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY1 = "TEST.99999V"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY2

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY2 = "TEST.99998V"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY3

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY3 = "TEST.99997V"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY4

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY4 = "TEST.99996N"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY5

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY5 = "TEST.99995x"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY6

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY6 = "TEST.99995x"
static

Test-only Error Code for TestErrorCodes Method.

◆ ERR_TESTONLY7

const String Ict.Common.Testing.TTestCommon.ERR_TESTONLY7 = "TEST.99994V"
static

Test-only Error Code for TestErrorCodes Method.


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