::xounit::test
Class TestAssertError

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::Test
              |
              +--::xounit::Assert
                    |
                    +--::xounit::TestCase
Class TestAssertError
superclass ::xounit::TestCase,

Variables
NameDefault ValueClassComment
currentTestMethod    ::xounit::TestCase
 name of the currently running test method.
nodeName    ::xox::Node
 
result    ::xounit::TestCase
 the result for the current run.
 
Methods
NameComment
test {}  
testFailError {}  
testFailNoError {}  
   
Methods from ::xotcl::Object
#, ., ?, ?code, ?methods, ?object, abstract, copy, coverageFilter, defaultmethod, extractConfigureArg, filterappend, garbageCollect, get#, getClean#, hasclass, init, methodTag, mixinappend, move, profileFilter, self, setParameterDefaults, shell, tclcmd, traceFilter,
 
Instproc Detail

test

Description:
 
Code:
  ::xounit::test::TestAssertError instproc test {}  {
   

        my assertNoError { set a 1 } "A"
        my assertError { error a } "B"
    
}

testFailError

Description:
 
Code:
  ::xounit::test::TestAssertError instproc testFailError {}  {
   

        my assertFailure {

        my assertError { set a Passed } "Passed"

        }
    
}

testFailNoError

Description:
 
Code:
  ::xounit::test::TestAssertError instproc testFailNoError {}  {
   

        my assertFailure {

        my assertNoError { error Passed } "Passed"

        }
    
}