::xounit::test
Class FailureTest

Heritage:
::xotcl::Object
  |
  +--::xox::Node
        |
        +--::xounit::Test
              |
              +--::xounit::Assert
                    |
                    +--::xounit::TestCase
Class FailureTest
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
testFailure {}  
testFailure2 {}  
   
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

testFailure

Description:
 
Code:
  ::xounit::test::FailureTest instproc testFailure {}  {
   

        my assertFailure {

        my assert 0 "REALLY PASSED"

        }
    
}

testFailure2

Description:
 
Code:
  ::xounit::test::FailureTest instproc testFailure2 {}  {
   

        catch {

            my assert 0 "REALLY PASSED"

        } result

        my assertEquals "REALLY PASSED" [ $result message ] "Did not fail!!!!"
    
}