home
 
 index of namespace default
 
 index of project tkunit
 
 index of module MTestCase

Class MTestCase.TestCase


Synopsis

  Methods:
Method assert
Check whether _have equals _required. Raise a TKUnitBooleanAssertionFailedError if the check fails.
Signature
assert(intrequired,
  inthave,
  Stringmsg 
  )  
Arguments
intrequired
inthave
Stringmsg

 
 top of page
Method assertFloat
Check whether _have equals _required. Raise a TKUnitFloatAssertionFailedError if the check fails.
Signature
assertFloat(floatrequired,
  floathave,
  Stringmsg 
  )  
Arguments
floatrequired
floathave
Stringmsg

 
 top of page
Method assertFloatEpsilon
Check whether _have roughly equals _required. Raise a TKUnitFloatAssertionFailedError if the check fails.
Signature
assertFloatEpsilon(floatrequired,
  floathave,
  floatepsilon,
  Stringmsg 
  )  
Arguments
floatrequired
floathave
floatepsilon
Stringmsg

 
 top of page
Method assertInt
Check whether _have equals _required. Raise a TKUnitIntegerAssertionFailedError if the check fails.
Signature
assertInt(intrequired,
  inthave,
  Stringmsg 
  )  
Arguments
intrequired
inthave
Stringmsg

 
 top of page
Method assertObject
Check whether _have equals _required. Raise a TKUnitObjectAssertionFailedError if the check fails.
Signature
assertObject(Objectrequired,
  Objecthave,
  Stringmsg 
  )  
Arguments
Objectrequired
Objecthave
Stringmsg

 
 top of page
Method assertq
Check whether _have equals _required. Raise a TKUnitBooleanAssertionFailedError if the check fails.
Signature
assertq(intrequired,
  inthave 
  )  
Arguments
intrequired
inthave

 
 top of page
Method assertqFloat
Check whether _have equals _required. Raise a TKUnitFloatAssertionFailedError if the check fails.
Signature
assertqFloat(floatrequired,
  floathave 
  )  
Arguments
floatrequired
floathave

 
 top of page
Method assertqFloatEpsilon
Check whether _have roughly equals _required. Raise a TKUnitFloatAssertionFailedError if the check fails.
Signature
assertqFloatEpsilon(floatrequired,
  floathave,
  floatepsilon 
  )  
Arguments
floatrequired
floathave
floatepsilon

 
 top of page
Method assertqInt
Check whether _have equals _required. Raise a TKUnitIntegerAssertionFailedError if the check fails.
Signature
assertqInt(intrequired,
  inthave 
  )  
Arguments
intrequired
inthave

 
 top of page
Method assertqObject
Signature
assertqObject(Objectrequired,
  Objecthave 
  )  
Arguments
Objectrequired
Objecthave

 
 top of page
Method assertqType
Check whether _have and _require are of the same type. Raise a TKUnitTypeAssertionFailedError if the check fails.
Signature
assertqType(_required,
  _have 
  )  
Arguments
_required
_have

 
 top of page
Method assertType
Check whether _have and _require are of the same type. Raise a TKUnitTypeAssertionFailedError if the check fails.
Signature
assertType(_required,
  _have,
  Stringmsg 
  )  
Arguments
_required
_have
Stringmsg

 
 top of page
Method ignore
Should be used whenever a test shall be ignored. Ignored tests still show up in the final report so that they can not be forgotten so easily.
Signature
ignore(Stringreason)
Arguments
Stringreason

 
 top of page
Method ignoreq
Signature
ignoreq()

 
 top of page
Method post
Tear down test fixture.
Signature
post()

 
 top of page
Method pre
Set up test fixture. A test fixture is a set of conditions shared by all test*() methods in this test case.
Signature
pre()

 
 top of page
 

Project Modules:MTestCase , MTestRunner , MTestRunnerConsole , MTestRunnerHTML 
Project Classes:TestCase , TestRunner , TestRunnerConsole , TestRunnerHTML 
Project Functions:TextToHTML 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:55