C# Class Fan.Sys.Test

Test is the base class of unit tests.
Inheritance: FanObj
Show file Open project: xored/f4 Class Usage Examples

Public Properties

Property Type Description
m_curTestMethod Method
verbose bool
verifyCount int

Public Methods

Method Description
@typeof ( ) : Type
curTestMethod ( ) : Method
fail ( ) : void
fail ( string msg ) : void
make_ ( Test t ) : void
setup ( ) : void
teardown ( ) : void
tempDir ( ) : File
verify ( bool cond ) : void
verify ( bool cond, string msg ) : void
verifyEq ( object expected, object actual ) : void
verifyEq ( object expected, object actual, string msg ) : void
verifyErr ( Type errType, Func f ) : void
verifyErrMsg ( Type errType, string errMsg, Func f ) : void
verifyFalse ( bool cond ) : void
verifyFalse ( bool cond, string msg ) : void
verifyNotEq ( object expected, object actual ) : void
verifyNotEq ( object expected, object actual, string msg ) : void
verifyNotNull ( object a ) : void
verifyNotNull ( object a, string msg ) : void
verifyNotSame ( object expected, object actual ) : void
verifyNotSame ( object expected, object actual, string msg ) : void
verifyNull ( object a ) : void
verifyNull ( object a, string msg ) : void
verifySame ( object expected, object actual ) : void
verifySame ( object expected, object actual, string msg ) : void
verifyTrue ( bool cond ) : void
verifyTrue ( bool cond, string msg ) : void
verifyType ( object obj, Type t ) : void

Private Methods

Method Description
err ( string msg ) : Exception
s ( object obj ) : string

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

curTestMethod() public method

public curTestMethod ( ) : Method
return Method

fail() public method

public fail ( ) : void
return void

fail() public method

public fail ( string msg ) : void
msg string
return void

make_() public static method

public static make_ ( Test t ) : void
t Test
return void

setup() public method

public setup ( ) : void
return void

teardown() public method

public teardown ( ) : void
return void

tempDir() public method

public tempDir ( ) : File
return File

verify() public method

public verify ( bool cond ) : void
cond bool
return void

verify() public method

public verify ( bool cond, string msg ) : void
cond bool
msg string
return void

verifyEq() public method

public verifyEq ( object expected, object actual ) : void
expected object
actual object
return void

verifyEq() public method

public verifyEq ( object expected, object actual, string msg ) : void
expected object
actual object
msg string
return void

verifyErr() public method

public verifyErr ( Type errType, Func f ) : void
errType Type
f Func
return void

verifyErrMsg() public method

public verifyErrMsg ( Type errType, string errMsg, Func f ) : void
errType Type
errMsg string
f Func
return void

verifyFalse() public method

public verifyFalse ( bool cond ) : void
cond bool
return void

verifyFalse() public method

public verifyFalse ( bool cond, string msg ) : void
cond bool
msg string
return void

verifyNotEq() public method

public verifyNotEq ( object expected, object actual ) : void
expected object
actual object
return void

verifyNotEq() public method

public verifyNotEq ( object expected, object actual, string msg ) : void
expected object
actual object
msg string
return void

verifyNotNull() public method

public verifyNotNull ( object a ) : void
a object
return void

verifyNotNull() public method

public verifyNotNull ( object a, string msg ) : void
a object
msg string
return void

verifyNotSame() public method

public verifyNotSame ( object expected, object actual ) : void
expected object
actual object
return void

verifyNotSame() public method

public verifyNotSame ( object expected, object actual, string msg ) : void
expected object
actual object
msg string
return void

verifyNull() public method

public verifyNull ( object a ) : void
a object
return void

verifyNull() public method

public verifyNull ( object a, string msg ) : void
a object
msg string
return void

verifySame() public method

public verifySame ( object expected, object actual ) : void
expected object
actual object
return void

verifySame() public method

public verifySame ( object expected, object actual, string msg ) : void
expected object
actual object
msg string
return void

verifyTrue() public method

public verifyTrue ( bool cond ) : void
cond bool
return void

verifyTrue() public method

public verifyTrue ( bool cond, string msg ) : void
cond bool
msg string
return void

verifyType() public method

public verifyType ( object obj, Type t ) : void
obj object
t Type
return void

Property Details

m_curTestMethod public property

public Method,Fan.Sys m_curTestMethod
return Method

verbose public static property

public static bool verbose
return bool

verifyCount public property

public int verifyCount
return int